开发环境搭建
前置条件:
-
已通过 homebrew 安装好 nondejs;
http://brew.sh/ -
已通过 ruby gem 安装好 overcommit;
https://github.com/brigade/overcommit#installation -
clone 项目 git repo 到本地,并进入到项目根目录
-
执行 `npm install`,并确认安装过程成功完成
-
执行
overcommit --install && overcommit --sign && overcommit --sign pre-commit && overcommit --sign post-commit && overcommit --sign commit-msg
-
执行
export DEV_HOST=${你的本机 IP}
-
执行
npm run start
,并使用浏览器打开 http://${你的本机 IP}:3000/