The Dva project base template for dva-cli
该工程的客户端和后台管理系统以dva-cli构建,服务端以egg-cli构建。期望打造一套基于react,ant-design,dva,egg.js于一体的、后台管理系统和前台系统。
项目集成依赖
- "clasnames": "^2.2.6",
- "dva": "^2.4.0",
- "react-draft-wysiwyg": "^1.12.13",
- "redux-logger": "^3.0.6",
- "rc-queue-anim": "^1.6.6",
- "draftjs-to-html": "^0.8.4",
- "egg": "^2.2.1",
- "await-stream-ready": "^1.0.1",
- "egg-sequelize": "^4.0.7",
- "formidable": "^1.2.1",
- "mysql2": "^1.6.1",
- "stream-wormhole": "^1.1.0"
- "node-pinyin": "^0.2.3",
- "egg-jwt": "^3.1.2"
-
vue-cli egg-init
-
airbnb 基础上进行少许改进。
cd dd-admin npm install npm run start
cd dd-server npm install npm run dev
cd dd-client npm install npm run start
├─dd-admin
│ └─public
| └─src
| └─assets
| └─components
| └─models
| └─routes
| └─services
| └─styles
| └─utils
| └─template
| index.js
| router.js
| index.css
│ .webpackrc.js
│ .roadhogrc.mock.js
│
├─dd-client
│ └─public
| └─src
| └─assets
| └─components
| └─models
| └─routes
| └─services
| └─styles
| └─utils
| └─template
| index.js
| router.js
| index.css
│ .webpackrc.js
│ .roadhogrc.mock.js
│
├─dd-server
│ └─config
| config.default.js
| plugin.js
| └─app
| └─controller
| └─extend
| └─middleware
| └─model
| └─public
| └─schedule
| └─service
| └─view
| router.js
│ └─log
│ app.js
| db.js