1 环境搭建
jasder edited this page 2021-08-20 09:26:51 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1、 安装node v6.9.x此安装包含了node和npm。

2、 安装cnpm命令行 npm install -g cnpm --registry=https://registry.npm.taobao.org

3、 安装依赖的js库public/react目录下<即项目package.json所在目录>,开启命令行): cnpm install

4、 如果你的ruby服务使用的是3000端口则需要在package.json中修改"port"参数的值

5、 启动服务(命令行-目录同3 npm start

6、 build初始化 npm run build