A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
Nest framework TypeScript starter repository.
$ npm install
# install and configure husky
$ npm run prepare
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
api-doc - (http://localhost:3000/api-docs)
# generate migration
$ npm run migration:generate -- --name=<file-name>
(it will generate a migration file in `/src/app/database/migrations` folder
with name something like `timestamp-<filename>.js`)
# run migration
$ npm run migration:run
(it will run all the new migrations)
# undo latest migration
$ npm run migration:undo:latest
(it will undo the very latest migration in database)
# undo all migration
$ npm run migration:undo:all
(it will undo all the migrations in database)
# generate seed
$ npm run seeds:generate -- --name=<file-name>
(it will generate a seeds file in `/src/app/database/seeders` folder
with name something like `timestamp-<filename>.js`)
# run seeds
$ npm run seeds:run
(it will run all the new seeds)
# undo latest seeds
$ npm run seeds:undo:latest
(it will undo the very latest seed in database)
# undo all seeds
$ npm run seeds:undo:all
(it will undo all the seeds in database)
# fix lints
$ npm run lint:fix
(it will fix all the lints as per rules in `tslint.json` you can add or modify the rules accordingly)
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest 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.