- Navigate to the deployments folder of in the deployments project
- Run
docker-compose up
- To take down the volumes (clearing the db), run
docker-compose down -v
then rundocker-compose up
-
After the proxy has started, run the following command in another terminal
$ npm start
- From the root directory of the project run
npm run dev:migrate:make <migration_name>
- This will create the migration in the migrations folder located at
/stream-service/src/db/migrations
- From the root directory of the project run
npm run dev:migrate:latest
- This runs any migration which has not been previously run.
- Note when you run the app, this is done by default
- From the root directory of the project run
npm run dev:migrate:rollback
- This rollbacks previously run migrations