git clone https://github.com/HancockTong/React-DigitalMall.git //克隆项目
npm install //安装node modules
cd mock && node server.js //启动后台服务器
npm run dev //启动网页
"body-parser"
: express中间件,作用是对post请求的请求体进行解析;"ejs"
: 是一个JavaScript模板库,用来从JSON数据中生成HTML字符串;"es6-promise"
: 用于处理异步回调代码;"express-session"
: 针对nodejs express框架提供的一套session扩展;"redux-thunk"
: 处理异步操作,在action作用到reducer之前触发一些业务操作。刚好起到控制层的作用;