Nest framework TypeScript starter repository. In addition, the starter contains connections to PostgreSQL, TypeOrm, Swagger and a special config pattern.
$ git clone https://github.com/Full-Stack-Shokhboz-Abdullayev/nestjs-postgres-starter.git
or you can freely fork the repo.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Open up the http://localhost:<your-port>/api
or http://localhost:5050/api
to see docs page.
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
# generate migrations
$ npm run typeorm:migration:generate -- <your-migration-name>
# run/apply migrations into DB
$ npm run typeorm:migration:run
Folders like src/scripts, src/migrations are essential for auto migration.
- Author: Shokhboz Abdullaev
Starter project is MIT licensed.