$ npm install
# 开发模式
$ npm run start
# 热更新模式
$ npm run start:dev
# 生产模式
$ npm run start:prod
# 单元测试
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
使用 Nest.js 搭建相关的疫情小程序 API 服务支持
- 接入 Alibaba 疫情防控相关 API
使用 mongodb 数据库 相关 npm 包:mongoose @nestjs/mongoose
启动 redis, cd 到 redis 所在目录运行
redis-server.exe redis.windows.conf
项目中根目录建立.env 文件,里面写入 MongoDB 连接路径地址
MONGO_URL=mongodb://你的账号:你的密码@localhost:27017/epidemic-server