Skip to content

前后端分离, vue 与 egg 结合的 后台管理系统解决方案

Notifications You must be signed in to change notification settings

liyanlong/vue-egg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Egg.js + Webpack + Vue 全家桶 + Element-UI

企业级 中台管理系统实践

Install

  1. 下载源码
  git clone https://github.com/liyanlong/vue-egg
  cd vue-egg
  npm install
  1. 配置database.json
{
  "dev": {
    "dialect": "sqlite",
    "storage": "path/to/database.sqlite"
  },
  "test": {
    "driver": "mysql",
    "host": "localhost",
    "database": "db_test",    
    "user": "db_test",
    "password": "db_test",
    "multipleStatements": true
  },
  "prod": {
    "driver": "mysql",
    "user": {"ENV": "PRODUCTION_USERNAME"},
    "password": {"ENV": "PRODUCTION_PASSWORD"}
  }
}
  1. db迁移命令
node_modules/.bin/sequelize db:migrate
node_modules/.bin/sequelize db:seed:all

node_modules/.bin/sequelize db:migrate:undo:all
node_modules/.bin/sequelize db:seed:undo:all

更多命令:查看

运行

  npm run dev

About

前后端分离, vue 与 egg 结合的 后台管理系统解决方案

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published