主服务

lrf 9007ab4fe1 init 11 bulan lalu
.github 9007ab4fe1 init 11 bulan lalu
app 9007ab4fe1 init 11 bulan lalu
config 9007ab4fe1 init 11 bulan lalu
test 9007ab4fe1 init 11 bulan lalu
.autod.conf.js 9007ab4fe1 init 11 bulan lalu
.eslintignore 9007ab4fe1 init 11 bulan lalu
.eslintrc 9007ab4fe1 init 11 bulan lalu
.gitignore 9007ab4fe1 init 11 bulan lalu
.travis.yml 9007ab4fe1 init 11 bulan lalu
README.md 9007ab4fe1 init 11 bulan lalu
app.js 9007ab4fe1 init 11 bulan lalu
appveyor.yml 9007ab4fe1 init 11 bulan lalu
ecosystem.config.js 9007ab4fe1 init 11 bulan lalu
jsconfig.json 9007ab4fe1 init 11 bulan lalu
package.json 9007ab4fe1 init 11 bulan lalu
server.js 9007ab4fe1 init 11 bulan lalu
todo.md 9007ab4fe1 init 11 bulan lalu
目录结构.md 9007ab4fe1 init 11 bulan lalu
码代码注意.md 9007ab4fe1 init 11 bulan lalu

README.md

server-baoan

保安服务端

看其他的.md文件比这个有用多了

本地运行: npm run dev

服务器使用 pm2 管理,常用指令:

  1. pm2 start :在项目的根目录,就是能看到 ecosystem.config.jsserver.js 的地方用
  2. pm2 stop xxx:停止pm2管理的某个项目 xxx可以写项目名(ecosystem.config.js文件中的app就是这个项目在pm2的任务名称),可以写自动排的编号,在列表里都能看到.不限制使用的地方
  3. pm2 list :查看pm2运行中的项目列表
  4. 更多指令自行去官网找

如果没有mongodb,直接在config.default中注释掉关于mongodb的配置即可