1.4 KiB
1.4 KiB
Installation Guide of node.console.web
配合 node.server 的前端界面。
Table of Contents
1. System requirements
-
OS
- Linux, Windows, MacOS
-
nodejs
- For support on installing nodejs, see https://git.faronear.org/tic/doc/src/master/InstallationGuide/nodejs.md
-
git
- For support on installing git, see https://git.faronear.org/tic/doc/src/master/InstallationGuide/git.md
-
node.server
2. Preparation
2.1 Download source code
git clone https://git.faronear.org/tic/node.console.web
cd node.console.web
git checkout stable
2.2 Install dependencies
npm install
3. Launch
-
run lintto format filesnpm run lint -
run devto test source code and 'hot-start' in a local web servernpm run dev -
run distto pack source code into html/css/js for distributionnpm run dist -
run deployto upload distribution to remote hostnpm run deploy -- -p '远程密码' -u '用户名' -r '远程路径' -H '远程主机' -
run daemonto launch web server on remote host登录到远程主机,进入 node.console.web 目录,然后
npm run daemon启动 web 服务。