How aaryansrinivas/storynest-django-blog works
StoryNest is a React and Django blogging platform. Readers browse and search posts, open post details, and view author profiles; authenticated users register or sign in, manage posts and profiles, and interact through likes, comments, and image uploads. The frontend routes pages through a shared API client and auth state; Django endpoints apply serializers and permissions around account and blog data. OAuth, throttling, and post analytics are also represented. Backend persistence and some wiring are inferred from documented behavior and models; unsampled implementation details are not asserted.
Main entry points: App.jsx Routes and guards · api.js API client · blog/views.py Post and comment API · account/views.py Account endpoints
Components 26
React client
- Routes and guards
frontend/src/App.jsx - Shared layout
frontend/src/components/Layout.jsx - Post discovery
frontend/src/pages/Home.jsx - Post cards
frontend/src/components/PostCard.jsx - Post detail
frontend/src/pages/PostDetail.jsx - Post editor
frontend/src/pages/PostEditor.jsx - My posts
frontend/src/pages/MyPosts.jsx - Profile pages
frontend/src/pages/Profile.jsx - Login and signup
frontend/src/pages/Login.jsx - OAuth callback
frontend/src/pages/OAuthCallback.jsx - OAuth buttons
frontend/src/components/OAuthButtons.jsx - API client
frontend/src/lib/api.js - Auth state
frontend/src/store/authStore.js
Accounts and security
- Account endpoints
account/views.py - Account serializers
account/serializers.py - User profiles
account/models.py - Social authentication
account/pipeline.py
Blog publishing
- Post and comment API
blog/views.py - Blog serializers
blog/serializers.py - Posts, tags, media
blog/models.py - Post permissions
blog/permissions.py
Backend platform
- Rate limits
blog_project/throttles.py - API routing
blog_project/urls.py
Other components
- Reader / author
- PostgreSQL
- Google / GitHub
Connections 38
- Reader / author → Routes and guards: uses
README.md - Routes and guards → Shared layout: renders
frontend/src/App.jsx - Routes and guards → Post discovery: routes to
frontend/src/App.jsx - Routes and guards → Post detail: routes to
frontend/src/App.jsx - Routes and guards → Post editor: guards and routes
frontend/src/App.jsx - Routes and guards → My posts: guards and routes
frontend/src/App.jsx - Routes and guards → Profile pages: routes to
frontend/src/App.jsx - Routes and guards → Login and signup: routes to
frontend/src/App.jsx - Routes and guards → OAuth callback: routes to
frontend/src/App.jsx - Post discovery → API client: requests
frontend/src/pages/Home.jsx - Post discovery → Post cards: renders
frontend/src/pages/Home.jsx - Post detail → API client: requests
frontend/src/pages/PostDetail.jsx - Post editor → API client: requests
frontend/src/pages/PostEditor.jsx - My posts → API client: requests
frontend/src/pages/MyPosts.jsx - Profile pages → API client: requests
frontend/src/pages/Profile.jsx - Profile pages → Post cards: renders
frontend/src/pages/Profile.jsx - Login and signup → Auth state: authenticates
frontend/src/pages/Login.jsx - Login and signup → OAuth buttons: renders
frontend/src/pages/Login.jsx - OAuth buttons → API client: loads providers
frontend/src/components/OAuthButtons.jsx - OAuth callback → Auth state: exchanges session
frontend/src/pages/OAuthCallback.jsx - Auth state → API client: calls
frontend/src/store/authStore.js - API client → Account endpoints: REST requests
README.md - Account endpoints → Account serializers: serializes
account/views.py - Account endpoints → User profiles: reads and updates
account/views.py - Account serializers → User profiles: serializes
account/serializers.py - Account endpoints → Rate limits: applies limits
account/views.py - Google / GitHub → Social authentication: authenticates via
README.md - OAuth buttons → Google / GitHub: starts login
frontend/src/components/OAuthButtons.jsx - API client → Post and comment API: REST requests
README.md - Post and comment API → Blog serializers: serializes
blog/views.py - Post and comment API → Posts, tags, media: queries and updates
blog/views.py - Post and comment API → Post permissions: checks access
blog/views.py - Post and comment API → Rate limits: applies limits
blog/views.py - Blog serializers → Posts, tags, media: serializes
blog/serializers.py - API routing → Account endpoints: routes auth
README.md - API routing → Post and comment API: routes posts
README.md - Account endpoints → PostgreSQL: persists account data
README.md - Post and comment API → PostgreSQL: persists blog data
README.md