egg-pj
QuickStart
see egg docs for more detail.
Development
$ npm install
$ npm run dev
$ open http://localhost:7001/news
Deploy
Use pm2 start server.js
to enable prod mode
$ pm2 start server.js
npm scripts
- Use
npm run lint
to check code style. - Use
npm test
to run unit test. - Use
npm run autod
to auto detect dependencies upgrade, see autod for more detail.