This project is powered by Node.js, Socket.io, MongoDB and React with Flux architecture and server-side rendering.
这个项目使用Node.js,Socket.io,MongoDB,React,Flux技术构建,并使用服务器端来渲染页面。
Use the following command line to install the dependencies of this project:
使用下面命令行安装项目依赖:
npm install
After installing the dependence, start Glup to compile and bundle the corresponding files firstly, and then start Node server using the following command line:
安装完依赖后,首先让Glup去编译打包相对应的文件,然后启动Node服务:
npm run build
npm run start
After the Node server has been started, we can visit the website through this Url:
启动Node服务后,我们可以通过下面的Url访问网站:
http://localhost:3001/
In develop environment, use the following two command lines to start the automatic compilation features:
在开发的时候,分别使用下面两句命令行启动自动编译功能:
npm run dev
npm run watch