see egg docs for more detail.
$ npm i
$ EGG_SERVER_ENV=dev npm run dev
$ open http://localhost:3000/
$ EGG_SERVER_ENV=stag npm start
$ open http://localhost:8080/
$ npm stop
$ EGG_SERVER_ENV=prod npm start
$ open http://localhost:8080/
$ npm stop
- 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.