注意

1.项目取下来后,还缺少.env配置文件,需要手动创建一份,并写入相关配置,示例如下:

// 项目运行端口
PORT=3000

// 数据库相关配置
DB_TYPE=postgres  // 数据库类型
DB_PORT=5432  // 端口
DB_DATABASE=blog  // 数据库名称
DB_USERNAME=test  // 用户名
DB_PASSWORD=test123  // 密码

DB_HOST_DEV="1.1.1.1"  // 数据库开发环境host地址

DB_HOST_PRO="2.2.2.2"  // 数据库生产环境host地址

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

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.

Stay in touch

License

Nest is MIT licensed.