English | 简体中文
基于 koa 2 的前后端分离项目,帮你简单迅速地搭建 node 服务器。
$ git clone https://github.com/Dragon-Rider/node-server.git
$ cd ./node-server
$ npm install
$ npm start
http://localhost:8080/
http://localhost:8080/page
http://localhost:8080/ajax/userInfo
app.json 是 PM2 的配置文件。 同时,使用pm2-logrotate
每天收集和切割日志。
$ npm install pm2 -g
$ pm2 install pm2-logrotate
$ npm run start-pm2
MIT