see egg docs for more detail.
1.
$ npm i
$ npm run dev
$ open http://localhost:7001/
add dababases table:
$ sequelize model:generate --name bug --attributes name:string,password:string
migrate dababases table:
$ sequelize db:migrate
$ sequelize db:migrate --env test
$ npm start
$ 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.