Back-end starter repository based on Nest framework.
$ npm installCreate .env file in project root directory with:
DB_NAME=sample_db_name
DB_HOST=127.0.0.1
DB_USER=sample_db_user
DB_PASSWORD=sample_db_password
DB_PORT=5431
PORT=3000PORT - Port of backend api
DB_HOST - Host of database. Default 127.0.0.1 or localhost
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run build && npm run start:prodAfter .env created:
$ docker-compose upBy default will be created pg_data directory with database.
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov