egg boot
see egg docs for more detail.
npm i
npm run dev
open http://localhost:7001/
npm start
npm stop
- Use
npm run lint
to check code style. - Use
npm test
to run unit test.
- EGG_SERVER_ENV is mainly for config.[xxx].js and other features like logs
- dotenv with env.[xxx] is for process.env, mainly for prisma
- forget NODE_ENV for eggjs