- Node.js (7.6+)
- MongoDB (2.6+)
Don't forget to enable websocket proxy if you use nginx when deploy this service
location /
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
git clone [email protected]:LianjiaTech/newsboy.git api-weapon
# custom config in ./config.json
cd api-weapon
# install dependencies
npm install
npm i cross-env nodemon webpack-cli -g
# init mongodb and admin account, also can be set in config.json
npm run install-server
# build client
npm run build-client
# start server,visit 127.0.0.1:{custom port in config.json }
node server/app.js
init admin account email: [email protected] pass: adminPass