/nest-init

Primary LanguageTypeScript

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

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

Docker & Redis images Commands

# run redisqueue image
$ yarn redis:queue:up

# drop redisqueue image
$ yarn redis:queue:rm

# restart redisqueue image
$ yarn redis:queue:restart

# run docker postgres image
$ yarn db:dev:up

# drop docker postgres image
$ yarn db:dev:rm

# restart docker postgres image
$ yarn db:dev:restart

# run docker postgres & redisqueue images
$ yarn db:rq:up

# drop docker postgres & redisqueue images
$ yarn db:rq:rm

# restart docker postgres & redisqueue images
$ yarn db:rq:restart

Generate and run the app docs

# generate & run docs
$ yarn doc:generate

# run docs
$ yarn doc:run

Create and drop the database

# create db
$ yarn db:create

# drop db
$ yarn db:drop

Seeding

# seeding fake data
$ yarn db:seed:fake

# create specific seeder
$ yarn db:seed:create

# seeding real data like roles
$ yarn db:seed:real

# create production database and seeding data to it
$ yarn db:seed:prod

# create  database and seeding data to it
$ yarn db:seed

License

Nest is MIT licensed.