A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
npm install
cp .env.example .env
npm run start:postgres
npx prisma db push
# development/watch mode - requires docker!
# Will automatically start a postgres instance before starting nest server
# and will automatically shutdown that instance after nest server exits with CTRL-C
# may stay running if the nest server crashes.
$ npm run start:dev
# to manually start and control postgres and the dev server
# run these commands
$ npm run start:postgres
$ npm run start:watch
# to stop postgres run
$ npm run stop:postgres
# development
$ npm run start
# watch mode
$ npm run start:watch
# production mode
$ npm run start:prodOpen http://localhost:4000/api in your browser to get see the swagger docs!
Swagger docs are mostly automatically generated from the actual source code.
To learn more about customizing the swagger docs using decorators and annotations goto: https://docs.nestjs.com/openapi/introduction
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:covNest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.