Giter Club home page Giter Club logo

epidemic-nest-server's Introduction

初始化

$ 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

Windows 本机启动 mongodb 数据库

Windows 系统下的开发配置

启动 redis, cd 到 redis 所在目录运行

redis-server.exe redis.windows.conf

项目中根目录建立.env 文件,里面写入 MongoDB 连接路径地址

MONGO_URL=mongodb://你的账号:你的密码@localhost:27017/epidemic-server

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.