? GitHub: https://github.com/majunchang/reachChatApp
react中注意的地点 绑定事件,state和actions的映射,路由包含的switch等
{this.props.redirectTo && this.props.redirectTo !== '/login' ?
<Redirect to={this.props.redirectTo}></Redirect> : null}
mark
mark
mark
mark
mark
// 开启mongodb数据库服务
// 将项目地址完整的clone下来
git clone https://github.com/majunchang/reachChatApp
// 进入到项目文件夹 安装相关依赖
cd reatChatApp
npm install
// 进行本地编译
npm start
// 进入到server文件夹里面 启动nodejs服务 建议使用nodemon启动
node(ndoemon) server
// 开启mongodb数据库服务
// 将项目地址完整的clone下来
git clone https://github.com/majunchang/reachChatApp
// 进入到项目文件夹 安装相关依赖
cd reatChatApp
npm install
// 首先将项目进行打包 然后启动打包的端口(server.js)中已经配置
npm run build
// 完成之后
npm run server
<div align=center> <img width="300" height="300" src="http://oneg19f80.bkt.clouddn.com/18-3-16/36877665.jpg"> </div>