使用Nest搭建的node项目,作为packbox的业务服务。
$ npm install本项目使用mongodb数据库,使用nest提供的@nestjs/mongoose作为ORM。 当你想要真正连接数据库时,请做如下操作:
- 复制一份本项目根目录下的
.mongodb.sample.env文件中的内容放在同一目录下,并命名为.mongodb.env - 修改
.mongodb.env中的配置参数的值为你实际的数据库配置
# 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:covNest is MIT licensed.