A progressive Node.js framework for building efficient and scalable server-side applications.
$ docker build -t post-api .
$ docker-compose up -d
To run app itself without docker, you need to change field MONGO_HOST from 'mongo' to 127.0.0.1 in .env file and run only database container in docker-compose file. You also need this, if you want run tests.
if you want to run both through docker, change MONGO_HOST to 'mongo'
# install dependencies
$ npm install
# run app
$ npm run start
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov