A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# 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.
npm outdated
npm update -g
npm update npm@latest
npm i -g @nestjs/cli
nest -v
nest new <project-name>
nest g module student
nest g controller student
nest g service student
npm run start:dev
npm i class-validator class-transformer
npm i @nestjs/config
npm i @nestjs/mongoose mongoose
npm install @nestjs/swagger
npm i -D pactum
npm i -D dotenv-cli
npm run test:e2e
db.createUser({
user:'TestUser',
pwd: passwordPrompt(),
roles: [
{ role: 'readWrite', db:'TestDb'}
]
})
git clone --bare https://github.com/EXAMPLE-USER/OLD-REPOSITORY.git
$ cd OLD-REPOSITORY.git
$ git push --mirror https://github.com/EXAMPLE-USER/NEW-REPOSITORY.git
$ cd ..
$ rm -rf OLD-REPOSITORY.git