Running the Express locally requires a few steps.
- Copy the
.env.example
to.env
and make the necessary updates (auth0) - Run the Docker Command
docker-compose up
- Run migrations
knex migrate:latest
- Run
npm run start:dev
- Open swagger page
http://localhost:8082/api-docs/
For running tests we use Jest.
Run integration tests:
npm run test:unit
Code coverage will be in the folder /coverage/unit/lcov-report/index.html
For running tests we use Jest.
Run integration tests:
npm run test:integration
Code coverage will be in the folder /coverage/integration/lcov-report/index.html
knex migrate:make some_name --env ENV_NAME
knex migrate:latest --env ENV_NAME
knex migrate:rollback --env ENV_NAME