Skip to content

supershutong/Node-Express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express实践

Express + Mongo 模块

实现功能

1. index.js组织模型、路由、中间件
2. routes实现HTTP动词
3. model实现数据库链接模型的schema/model
4. middleware中间件实现request/response包装处理

Mongo服务器执行

show dbs;
use template;
show collections;
use templates;

Node客户端执行

yarn run dev

Mocha 单测

执行单测

yarn run test

覆盖率报告

yarn run cov

About

express实践demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published