CMS-API is a blog management system separated from the front and back-end.
Back -end technology stack: Egg.js + MySQL + Sequelize + JWT, etc.
Front -end technology stack: Vue family barrel + Axios + Elementui + Markdown editor, etc.
Front project address: https://github.com/caiheping/Vue- CMS
Node version 8 or more
Mysql database
git clone https://github.com/caiheping/egg-cms.git
# 如果clone 很慢,也可以拉码云的仓库
git clone https://gitee.com/caiheping/egg-cms.git
cd egg-cms
npm install
Then modify the config/config.default.js and database/config.json
Create database EGG_CMS_Development
In the EGG_CMS_Development database, the imported project directory of egg_cms_development.sql file
Operating project
npm run dev
Browser open http://127.0.0.1:7001/index.html
admin login account number: admin, password: 123456 Ordinary user account password itself uses admin to create creation by user management
cms-api
├─ app
| ├─ controller // 用于解析用户的输入,处理后返回相应的结果
| ├─ extend // 用于框架的扩展
| ├─ middleware // 用于编写中间件
| ├─ model // 用于放置领域模型
| ├─ public // 用于放置静态资源
| ├─ rules // 参数校验文件
| ├─ schedule // 用于定时任务,可选,具体参见定时任务
| ├─ service // 用于编写业务逻辑层,可选,建议使用
| ├─ utils // 工具文件
| ├─ router.js // 用于配置 URL 路由规则
├─ config
| ├─ config.default.js // 用于编写配置文件
| ├─ plugin.js // 用于配置需要加载的插件
├─ database
| ├─ migrations // 数据库迁移文件
| ├─ seeders // 种子文件
| ├─ config.json // sequelize 配置文件
├─ logs // 日志文件
├─ run
├─ test
├─ typings
├─ www // 前端打包文件
...
Demonstration address: http://blog.caihp.top (only open some functions on your own server, want to view all features, please see the Copy code on your computer)
Username: test
Password: 123456
Login page
front page
Blog Management> Article List
Blog Management> Article Type
Blog Management> Friendship Link
System Management> User Management
System Management> Character Management
System Management> Menu Management
System Management> Department Management
System Management> Dictionary Management
System Management> Notice Announcement
My blog> Homepage
My Blog> Article Details
Portal: front-end Vue3 + back-end EGG project Address: https://github.com/caiheping/oa-di or https://gitee.com/caiheping/oa-di
If you help you, you can click "Star" in the upper right corner to support it. Thank you! ^_^