How pavanbhargav/vbond-creatives-hub works
Purpose and entry points
This is a split client/server application centered on account authentication. The frontend is a Next.js app; the backend is a Django service exposing account endpoints. Primary entry points are client/creative-hub/app/page.tsx, client/creative-hub/app/layout.tsx, and server/manage.py.
Frontend application shell
Next.js App Router owns browser rendering, route composition, and global styling. The root layout establishes shared page structure and styles; the home route is separate from authentication routes.
• client/creative-hub/app/layout.tsx
• client/creative-hub/app/globals.css
• client/creative-hub/app/page.tsx
Authentication user journeys
Login and signup are dedicated frontend routes, likely collecting credentials and invoking backend authentication APIs. These routes form the principal user-facing workflow currently represented in the repository.
• client/creative-hub/app/login/page.tsx
• client/creative-hub/app/signup/page.tsx
• client/creative-hub/api/axios.ts
API boundary
The Axios module is the frontend’s HTTP integration boundary and should centralize backend base URL, headers, credentials/token handling, and common failure behavior. Browser components should call this client rather than directly coupling to Django endpoint details.
• client/creative-hub/api/axios.ts
• server/config/urls.py
• server/apps/accounts/urls.py
Account domain and authentication
The Django accounts app owns account persistence, authentication behavior, request/response serialization, and HTTP views. The expected control flow is: frontend form → Axios request → project URL routing → accounts URL routing → view → serializer/authentication logic → account model/database.
• server/apps/accounts/models.py
• server/apps/accounts/authenticate.py
• server/apps/accounts/serializers.py
• server/apps/accounts/views.py
Backend composition and deployment interfaces
Django project settings compose installed apps, middleware, database/auth configuration, and service-wide behavior. asgi.py and wsgi.py expose alternate server interfaces; the build script is the deployment-oriented backend entrypoint.
• server/config/settings.py
• server/config/asgi.py
• server/config/wsgi.py
• server/build.sh
Persistence and external/runtime dependencies
Django migrations define the account schema evolution and imply a configured relational database, though its concrete provider is not visible here. Material runtimes are Node.js/Next.js/TypeScript in client/creative-hub/package.json and Python/Django dependencies in server/requirements.txt. No third-party external service integration is evident beyond frontend-to-backend HTTP.
• server/apps/accounts/migrations/0001_initial.py
• client/creative-hub/package.json
• server/requirements.txt
Main entry points: layout.tsx App shell · settings.py Project settings · models.py Account model · views.py Account views
Components 19
Next.js frontend
- App shell · Composes shared layout and global browser styling.
client/creative-hub/app/layout.tsx - Home route
client/creative-hub/app/page.tsx - Login route · Collects login credentials.
client/creative-hub/app/login/page.tsx - Signup route · Collects registration credentials.
client/creative-hub/app/signup/page.tsx - Axios API client · Centralizes browser requests and auth-related HTTP behavior.
client/creative-hub/api/axios.ts - Node / Next runtime
client/creative-hub/package.json
Django backend
- Django management entry
server/manage.py - Project settings · Composes apps, middleware, database, and authentication settings.
server/config/settings.py - Project URL router
server/config/urls.py - Account URL router
server/apps/accounts/urls.py - Account views
server/apps/accounts/views.py - Account serializers · Validates and shapes account API payloads.
server/apps/accounts/serializers.py - Authentication logic
server/apps/accounts/authenticate.py - Account model
server/apps/accounts/models.py - Account schema migration
server/apps/accounts/migrations/0001_initial.py - Relational database · Concrete database provider is not represented.
- ASGI / WSGI interfaces · Expose alternate Django server deployment interfaces.
server/config/asgi.py - Backend build script
server/build.sh - Python / Django dependencies
server/requirements.txt
Connections 21
- App shell → Home route: renders route
- App shell → Login route: composes
- App shell → Signup route: composes
- Login route → Axios API client: submits credentials
- Signup route → Axios API client: submits registration
- Axios API client → Project URL router: HTTP account requests
- Django management entry → Project settings: loads
- Project settings → Project URL router: configures
- Project URL router → Account URL router: delegates account paths
- Account URL router → Account views: routes requests
- Account views → Account serializers: validates payloads
- Account views → Authentication logic: authenticates
- Account serializers → Account model: maps account data
- Authentication logic → Account model: verifies accounts
- Account model → Relational database: persists
- Account schema migration → Relational database: evolves schema
- Project settings → Account model: installs app
- ASGI / WSGI interfaces → Project settings: boots project
- Backend build script → ASGI / WSGI interfaces: deploys service
- Node / Next runtime → App shell: runs
- Python / Django dependencies → Django management entry: provides Django runtime