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

Set up

$ cp .env.example .env

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

Nest CLI

# generate CRUD resource
nest g resource [name]

# create a controller
nest g controller [name]

# create a service
nest g service [name]

# create a module
nest g module [name]

Docker

# start docker
docker-compose up -d

# docker build image
docker build -t nest-sample .

# docker start container
docker run -dp 3000:3000 nest-sample

Database

# create a migration
$ npm run migration:create [name]

# generate a migration
$ npm run migration:generate [name]

# run migration
$ npm run db:migrate

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.