A API service is used to get price of tokens and save them on redis.
This service is designed to get price of token by third-party API (Coin marker cap)
List the System requirements needed to run project.
- Redis
- NodeJS
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
yarn install
yarn dev
docker compose up -d --build