Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 712 Bytes

readme.md

File metadata and controls

23 lines (17 loc) · 712 Bytes

Velodrome Finance HTTP API 🚲💨🕸️

Velodrome Finance HTTP API is used by our app to fetch tokens and liquidity pool pairs.

Please make sure you have Docker first.

To build the image, run:

$ docker build ./ -t velodrome/api

Next, make a copy of the env.example file, and update the relevant variables.

Finally, to start the container, run:

$ docker run --rm --env-file=env.example.copy -v $(pwd):/app -p 3001:3001 -w /app -it velodrome/api

To run the syncer (refreshes data from chain) process, run:

$ docker run --rm --env-file=env.example.copy -v $(pwd):/app -p 3001:3001 -w /app -it velodrome/api sh -c 'python -m app.pairs.syncer'