Nest framework TypeScript starter repository.
# npm 8 or higher
# node 16 or higher
$ npm install
$ npm run husky
$ npm run lint:fix
$ docker-compose --version (must be 2.7.0)
$ docker-compose up db -d
$ docker-compose exec db bash
$ psql -U postgres -d projectz
# run migrations
$ npm run migration:run
# generate migrations
$ npm run migration:generate
# revert migrations
$ npm run migration:revert
if you get error on migrations try deleting dist folder, remove db container and volume
# development
$ npm run start:dev
$ cd client && npm run dev
# build
$ npm run build
$ cd client && npm run build
# production mode
$ npm run start
$ cd client && npm run start
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is MIT licensed.