/nestjs-boilerplate

nestjs 开发脚手架,集成nestjs-i18n,jwt,graph-client

Primary LanguageTypeScriptApache License 2.0Apache-2.0

NestJS 脚手架

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

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

Description

集成 jwt,typeorm,i18n 全局异常处理

├── src
│   ├── common
│   ├── config                配置处理
│   ├── database
│   │   └── migrations  数据库迁移
│   ├── exception 全局异常处理
│   ├── i18n      国际化json配置      
│   │   ├── en
│   │   └── zh
│   ├── interceptor 拦截器
│   └── modules     业务module
│       └── auth    auth 包含jwt简单实现
└── test

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