/egg-blog

bootstrap 学习

Primary LanguageJavaScript

blog

QuickStart

see egg docs for more detail.

  1. 首先需要配置数据库 mysql config.mysql = { client: { host: 'localhost', port: '3306', user: 'root', password: 'root', database: 'test' }, app: true, agent: false };
  2. 启动前端服务
$ cd app/public
$ npm i 
$ npm start
  1. 本地开发启动后台服务
$ npm i
$ npm run dev
$ open http://localhost:7001/dev

Deploy

$ npm start
$ npm stop

npm scripts

  • 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.