Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 793 Bytes

README_CN.md

File metadata and controls

36 lines (29 loc) · 793 Bytes

English | 简体中文

node-server

基于 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

使用 PM2 来运行项目

app.json 是 PM2 的配置文件。 同时,使用pm2-logrotate 每天收集和切割日志。

$ npm install pm2 -g
$ pm2 install pm2-logrotate 
$ npm run start-pm2

相关文章

版权许可证

MIT