EggBorn.js -- The Ultimate Javascript Full Stack Framework
Vue.js + Framework7 / Vue Router + Koa.js + Egg.js + MySQL
$ npm install -g egg-born
$ egg-born project_name
$ cd project_name
$ npm install
Edit file: src/backend/config/config.default.js
// mysql
config.mysql = {
clients: {
// donot change the name
__ebdb: {
host: '127.0.0.1',
port: '3306',
user: 'travis',
password: '',
database: 'egg-born',
},
},
};
Start backend service
$ npm run dev:backend
Start front service
$ npm run dev:front