A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
要使用TypeORM CLI创建Models,需要全局安装TypeORM:
$ npm install -g ts-node
$ npm install typeorm -g
安装本项目
$ npm install
配置数据库
cp ormconfig-example.json ormconfig.json
更新数据库配置 ormconfig.json
...
"username": "root",
"password": "",
"database": "rxdrag",
...
生成数据库 (需要执行两次)
$ npm run typeorm migration:run
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
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.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.