Skip to content

laowai502/nestApi

Repository files navigation

nestApi

nodejs framework for nest.js

Description

Development framework for server-side applications based on node by Nestjs

Core technology: node.js, NestJs, TypeORM, MongoDB, Sql server

Nest framework TypeScript starter repository.

DB config

ormconfig.json

Installation

$ npm install

$ npm install -g typeorm-model-generator

Running the app

SwaggerUI page: localhost:3002/api

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

CLI command (Important)

# generate CRUD module
$ nest g resource <name>

# check info
$ nest info

SwaggerUI for express

# use swagger
$ npm install --save @nestjs/swagger swagger-ui-express

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.

License

Nest is MIT licensed.

About

nodejs framework for nest.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published