Skip to content

tiennguyen1203/Booking-server

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

Migration

# create migration file: 
$ yarn typeorm migration:create -n "file name"

# run migration:
$ yarn typeorm migration:run

# revert/rollback migration:
$ yarn typeorm migration:revert

Seed data for local db to dev

$ yarn ts-node src/scripts/seed-data/index.ts

Model

# create module:
$ nest g module model/${module_name}. 
Example: nest g module model/users

# create controller/service
$ nest g controller/service model/${module_name}: 
Example: nest g controller model/users OR nest g service model/users

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages