Nest + Postgres Starter





Description

Nest framework TypeScript starter repository. In addition, the starter contains connections to PostgreSQL, TypeOrm, Swagger and a special config pattern.

Get Started

$ git clone https://github.com/Full-Stack-Shokhboz-Abdullayev/nestjs-postgres-starter.git

or you can freely fork the repo.

Running the Starter

# 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.

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Auto Migrations

# 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.

Stay in touch.

License

Starter project is MIT licensed.