see egg docs for more detail.
- 首先需要配置数据库 mysql
config.mysql = { client: { host: 'localhost', port: '3306', user: 'root', password: 'root', database: 'test' }, app: true, agent: false };
- 启动前端服务
$ cd app/public
$ npm i
$ npm start
- 本地开发启动后台服务
$ npm i
$ npm run dev
$ open http://localhost:7001/dev
$ 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.