Provides public endpoints with trading data history.
- Node.js
- Docker
- Docker Compose
To run the application, you need to have Docker and Docker Compose installed. Then you can run the following commands:
cp .env.example .env
docker-compose up
This will start the application and the database in docker containers.
Application will be available at http://localhost:3000
.
To make any changes to a database when running application in docker container, you first need to ssh into the container with the following command:
docker exec -it trading-data-service sh
OR (trading-data-service_trading-data-service_1)
Then you can generate new migration from the changes to the entity models by running:
npm run migrations:generate -- -n <migration name>
After generating a migration, you can run it on the database by running:
npm run migrations:run
Revert the last migration by running:
npm run migrations:revert