How vold2emort/blog-app-react-drf works
This repository is a Django blog backend with a minimal React page that currently displays only a Blog heading. The principal backend workflow is HTTP routing into blog API views, which apply visibility and permission rules, use serializers to validate and represent posts, categories, comments, and votes, and operate on Django models. A separate user-registration path validates users through its serializer; project routes also expose JWT login, refresh, and logout endpoints. The React entry point renders the placeholder page, but no frontend-to-API connection is shown. Connections reflect excerpts or the source index; other wiring is omitted.
Main entry points: views.py Blog API operations · config/urls.py Project routes · blog_api/urls.py Blog API routes · serializers.py Blog serialization
Components 12
Web interface
- Blog page
web/src/App.jsx - React entry
web/src/main.jsx
API routing
- Project routes
api/config/urls.py - Blog API routes
api/blog_api/urls.py
Blog capabilities
- Blog API operations
api/blog_api/views.py - Blog serialization
api/blog_api/serializers.py - Blog data models
api/blog/models.py
User identity
- User routes
api/users/urls.py - Registration
api/users/views.py - User validation
api/users/serializers.py - User model
api/users/models.py
Other components
- Visitor
Connections 12
- React entry → Blog page: renders
web/src/main.jsx - Visitor → Blog page: views
- Project routes → Blog API routes: includes posts
api/config/urls.py - Project routes → User routes: includes users
api/config/urls.py - Blog API routes → Blog API operations: routes to
api/blog_api/urls.py - User routes → Registration: routes to
api/users/urls.py - Blog API operations → Blog serialization: uses
api/blog_api/views.py - Blog API operations → Blog data models: queries and updates
api/blog_api/views.py - Blog serialization → Blog data models: validates and creates
api/blog_api/serializers.py - Registration → User validation: validates with
api/users/views.py - User validation → User model: creates users
api/users/serializers.py - Visitor → Project routes: requests endpoints