$ sudo docker-compose up --build
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- Insert JWT secret key on src/constants.ts
- GET request to root/api -> ex http://localhost:3000/api
DockerFile also run a seeder that seeds MongoDB Database with mockup data (src/seed/seed.ts), in order to test the app.
- To log in to ACME Corporation from mockup data, as admin use these credentials : user:easypol@easypol.it pw:passeasy
- To log in to Technology ARC from mockup data, as admin use these credentials : user:easypoltech@easypol.it pw:passpol