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. - Use
npm run autod
to auto detect dependencies upgrade, see autod for more detail.
npx sequelize init:config
npx sequelize init:migrations
[NODE_ENV=development/test/production] npx sequelize db:create --charset utf8mb4
npx sequelize migration:generate --name=init-users
npx sequelize db:migrate #生成表
npx sequelize db:migrate:undo #删除表
npx sequelize db:migrate:undo:all