Skip to content

DistributedCollective/trading-data-service

Repository files navigation

trading-data-service

Provides public endpoints with trading data history.

Prerequisites

  • Node.js
  • Docker
  • Docker Compose

Running the application

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.

Database Migrations

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

About

Provides public endpoints with trading data history.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •