How swayam7702/drf_project works
Card Wise is a credit-card and personal-finance management web app. The visible user journey is registration or login, authenticated dashboard access, and profile/card/financial-profile management through a React frontend and Django REST backend. Dashboard content is currently hard-coded rather than loaded from the API. Source evidence is incomplete: backend routing, card/profile views, and several frontend actions/loaders/services were not excerpted, so uncertain runtime links are omitted or marked unverified.
Main entry points: router.jsx Route configuration · urls.py Django REST API · views.py Card endpoints · App.jsx React app
Components 20
Web frontend
- React app
frontend/src/App.jsx - Route configuration
frontend/src/router/router.jsx - Auth loaders and actions
frontend/src/router - Registration page
frontend/src/pages/Register.jsx - Login page
frontend/src/pages/LogInPage.jsx - Main layout
frontend/src/layouts/MainLayout.jsx - Dashboard
frontend/src/dashboard/Dashboard.jsx - Profile page
frontend/src/pages/Profile.jsx - API client
frontend/src/services/api.jsx
Identity and profile
- Django REST API
backend/backend/urls.py - Account endpoints
backend/users/views.py - Account validation
backend/users/serializers.py - User records
backend/users/models.py
Financial data
- Financial profile endpoints
backend/financial_profiles/views.py - Financial profile validation
backend/financial_profiles/serializers.py - Financial profile records
backend/financial_profiles/models.py - Card endpoints
backend/cards/views.py - Card validation
backend/cards/serializers.py - Credit card records
backend/cards/models.py
Other components
- Visitor
Connections 22
- Visitor → React app: opens
- React app → Route configuration: provides routes
frontend/src/App.jsx - Route configuration → Main layout: routes to
frontend/src/router/router.jsx - Route configuration → Auth loaders and actions: runs loaders
frontend/src/router/router.jsx - Route configuration → Dashboard: routes to
frontend/src/router/router.jsx - Route configuration → Profile page: routes to
frontend/src/router/router.jsx - Route configuration → Login page: routes to
frontend/src/router/router.jsx - Route configuration → Registration page: routes to
frontend/src/router/router.jsx - Registration page → Django REST API: posts registration
frontend/src/pages/Register.jsx - Login page → Django REST API: submits login
- Profile page → API client: requests profile
- Dashboard → Card endpoints: links to cards
- API client → Django REST API: calls API
- Django REST API → Account endpoints: routes requests
- Django REST API → Card endpoints: routes requests
- Django REST API → Financial profile endpoints: routes requests
- Account endpoints → Account validation: validates with
backend/users/views.py - Account validation → User records: creates users
backend/users/serializers.py - Financial profile endpoints → Financial profile validation: serializes profile
- Financial profile validation → Financial profile records: validates records
backend/financial_profiles/serializers.py - Card endpoints → Card validation: serializes cards
- Card validation → Credit card records: checks duplicates
backend/cards/serializers.py