Skip to content

Offram/nodejs-nestjs-mongoose-skeleton

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

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.

Stay in touch

License

Nest is MIT licensed.

COMMANDS USED in the Project

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'}
    ]
})

Cloning a Repo

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

About

A Skeleton built on NodeJS with NestJS, Mongoose and Swagger. E2E Testing done with Pactum

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published