1. 项目说明

本项目为react-redux的一个demo,具体是去理解reducer store action是怎么处理数据的

2. 项目启动说明

  1. git clone https://github.com/liziwangrui/react-redux-demo.git
  2. npm i
  3. cp src/config.example.js src/config.js
  4. webpack (包含watch js和scss功能)
  5. gulp
  6. gulp watch(监听scss-lint和其他文件copy)
  7. npm run start 启动项目
  8. sudo vim /etc/hosts 修改hosts文件,添加danci.smartstudy.com
  9. npm run watch(启动同步刷新)
  10. 浏览器访问danci.smartstudy.com:3000/11

webpack全局安装 npm install -g webpack

修改远程仓库地址

git remote set-url origin https://github.com/liziwangrui/react-redux-demo.git