Skip to content

THAQuanttt/crawl_price_service

Repository files navigation

API - SERVICE - CRAWL - PRICE

A API service is used to get price of tokens and save them on redis.

Table of Contents

Introduction

This service is designed to get price of token by third-party API (Coin marker cap)

System requirements

List the System requirements needed to run project.

  • Redis
  • NodeJS

Setup

Configure environment variables (if needed)

touch .env

In the .env file, fill in the following information

PORT=

NODE_ENV=
# NODE_ENV=production


REDIS_URL = 
COIN_MARKET_CAP_API = 
TIME_LIMIT = 120000 # 1 minute
CRON_TIME = 10800000 # 3 hours

Run in local

yarn install
yarn dev

Run with Docker

docker compose up -d --build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published