How 2388326078/yuhua_blog works
Yuhua is a Django + Vue 2 blog platform. Readers navigate the Vue app to browse articles and media, interact through comments, likes and danmaku, and access account and sharing features; administrators manage content and site settings. The frontend service layer sends API requests, while Django exposes the backend and is configured for MySQL and OSS. The README documents additional security and media capabilities; some backend wiring is not shown in the sampled source, so uncertain call relationships are omitted.
Main entry points: urls.py Django API · service.js API service · index.js Page router · views Public pages
Components 18
Vue application
- Vue app shell
yuhua_block/src/App.vue - Page router
yuhua_block/src/router/index.js - Public pages
yuhua_block/src/views - Comments UI
yuhua_block/src/components/Comment/CommentArea.vue - Admin pages
yuhua_block/src/components/admin - User center
yuhua_block/src/components/UserCenter.vue - API service
yuhua_block/src/directives/service.js
Django backend
- Django API
boke/boke/urls.py - Article endpoints
boke/YuhuaBoke/FrontEndInterface/ArticleVue.py - Comment endpoints
boke/YuhuaBoke/FrontEndInterface/CommentVue.py - Login endpoints
boke/YuhuaBoke/FrontEndInterface/loginVue.py - Domain models
boke/YuhuaBoke/models.py - MySQL
boke/boke/settings.py
Security and identity
- Identity controls
boke/YuhuaBoke/FrontEndInterface/loginVue.py - Origin checks
boke/YuhuaBoke/middleware/origin.py
Media storage
- Upload and media
boke/YuhuaBoke/utils/uploadImg.py - Aliyun OSS
Other components
- Visitor
Connections 16
- Visitor → Page router: opens pages
- Page router → Vue app shell: renders in
- Page router → Public pages: routes to
- Page router → Admin pages: routes to
- Public pages → API service: requests data
- Comments UI → API service: submits comments
- Admin pages → API service: manages content
- User center → API service: requests account actions
- API service → Django API: sends API requests
- Django API → Article endpoints: routes article requests
- Django API → Comment endpoints: routes comment requests
- Django API → Login endpoints: routes login requests
- Login endpoints → Identity controls: checks credentials
- Identity controls → Domain models: reads user records
- Origin checks → Django API: checks request origin
- Upload and media → Aliyun OSS: uploads and deletes