How sahilshaikh00067/latestchatway works
The repository is a WhatsApp campaign-management web application: users authenticate, enter a role-gated dashboard, manage users and credits, create campaigns, and review campaign or credit reports. The React app routes to these screens and the Django API implements the backend domain and persistence. The excerpts show route ownership, API URL routing, campaign/user models, and a Supabase upload path; most frontend-to-API calls are not excerpted, so those links are marked unverified.
Main entry points: App.jsx Route application · urls.py API routes · views.py API operations · Dashboard.jsx Dashboard
Components 19
Web application
- Route application
src/App.jsx - Navigation shell
src/components/Header.jsx - Dashboard
src/components/Dashboard.jsx - Not found
src/components/PageNotFound.jsx
Access and administration
- Login
src/components/Login.jsx - Logout
src/components/Logout.jsx - Role gate
src/components/category/AdminRoute.jsx - Add user
src/components/AddUser.jsx - Manage users
src/components/ManageUser.jsx - Credit history
src/components/category/CreditHistory.jsx
Campaign operations
- WhatsApp campaign
src/components/category/WappCampaign.jsx - DP campaign
src/components/category/WappDpCampaign.jsx - Campaign reports
src/components/category/WappReports.jsx
Backend and persistence
- API routes
backend/api/urls.py - API operations
backend/api/views.py - User and campaign models
backend/api/models.py - Django database
Other components
- User
- Supabase storage
Connections 26
- User → Route application: uses
- Route application → Login: routes to
src/App.jsx - Route application → Role gate: guards routes
src/App.jsx - Route application → Navigation shell: wraps screens
src/App.jsx - Route application → Dashboard: routes to
src/App.jsx - Route application → WhatsApp campaign: routes to
src/App.jsx - Route application → DP campaign: routes to
src/App.jsx - Route application → Campaign reports: routes to
src/App.jsx - Route application → Add user: routes to
src/App.jsx - Route application → Manage users: routes to
src/App.jsx - Route application → Credit history: routes to
src/App.jsx - Route application → Logout: routes to
src/App.jsx - Route application → Not found: routes to
src/App.jsx - Navigation shell → Dashboard: renders outlet
src/components/Header.jsx - API routes → API operations: routes requests
backend/api/urls.py - API operations → User and campaign models: uses models
backend/api/views.py - User and campaign models → Django database: persists records
- Login → API routes: submits credentials
- Dashboard → API routes: fetches campaigns
- Add user → API routes: creates users
- Manage users → API routes: manages accounts
- Credit history → API routes: fetches history
- WhatsApp campaign → API routes: submits campaign
- DP campaign → API routes: submits campaign
- Campaign reports → API routes: fetches reports
- API operations → Supabase storage: uploads media
backend/api/views.py