How hrishisawalkar82/eklavyaartschool works
Eklavya is an art-school website with a React frontend and FastAPI backend. Visitors browse school and artwork pages or submit a contact message; parents and administrators can authenticate, while parents submit payment plans and view student/payment information and administrators manage payments, students, and dues. The graph follows the frontend routes through its API client into backend routers and persistence. Backend route and model relationships are supported by the SOURCE INDEX; some frontend-to-endpoint links are based on the API calls shown. The README provides no further product detail.
Main entry points: App.jsx Page routing · client.js HTTP API client · main.py FastAPI application · payments.py Payment handling
Components 28
Website experience
- Page routing
Eklavya/frontend/src/App.jsx - Home page
Eklavya/frontend/src/pages/Home.jsx - Artwork gallery
Eklavya/frontend/src/pages/Gallery.jsx - Kids gallery
Eklavya/frontend/src/pages/Kids.jsx - Image grid
Eklavya/frontend/src/components/ImageGrid.jsx - Contact form
Eklavya/frontend/src/pages/Contact.jsx
Accounts and access
- Login pages
Eklavya/frontend/src/pages/Login.jsx - Session state
Eklavya/frontend/src/context/AuthContext.jsx - Role protection
Eklavya/frontend/src/components/ProtectedRoute.jsx - Token and password logic
Eklavya/backend/app/auth.py
School operations
- Parent payments
Eklavya/frontend/src/pages/Payment.jsx - Payment administration
Eklavya/frontend/src/pages/AdminPayments.jsx
API and persistence
- HTTP API client
Eklavya/frontend/src/api/client.js - FastAPI application
Eklavya/backend/app/main.py - Authentication routes
Eklavya/backend/app/routes/auth.py - Contact handling
Eklavya/backend/app/routes/contact.py - Image endpoints
Eklavya/backend/app/routes/images.py - Payment handling
Eklavya/backend/app/routes/payments.py - Student and dues handling
Eklavya/backend/app/routes/students.py - Database session
Eklavya/backend/app/db.py - User records
Eklavya/backend/app/models/user.py - Payment records
Eklavya/backend/app/models/payment.py - Payment due records
Eklavya/backend/app/models/payment_due.py - Student records
Eklavya/backend/app/models/student.py - Contact records
Eklavya/backend/app/models/contact.py
External services
- Image blob storage
Eklavya/backend/app/blob.py - Email delivery
Eklavya/backend/app/email_service.py
Other components
- Visitor or user
Connections 45
- Visitor or user → Page routing: opens
Eklavya/frontend/src/App.jsx - Page routing → Home page: routes to
Eklavya/frontend/src/App.jsx - Page routing → Artwork gallery: routes to
Eklavya/frontend/src/App.jsx - Page routing → Kids gallery: routes to
Eklavya/frontend/src/App.jsx - Page routing → Contact form: routes to
Eklavya/frontend/src/App.jsx - Page routing → Login pages: routes to
Eklavya/frontend/src/App.jsx - Page routing → Parent payments: routes to
Eklavya/frontend/src/App.jsx - Page routing → Role protection: protects route
Eklavya/frontend/src/App.jsx - Role protection → Payment administration: renders
Eklavya/frontend/src/App.jsx - Page routing → Session state: provides session
Eklavya/frontend/src/App.jsx - Home page → HTTP API client: requests content
Eklavya/frontend/src/pages/Home.jsx - Artwork gallery → HTTP API client: requests images
Eklavya/frontend/src/pages/Gallery.jsx - Kids gallery → HTTP API client: requests images
Eklavya/frontend/src/pages/Kids.jsx - Home page → Image grid: renders
Eklavya/frontend/src/pages/Home.jsx - Artwork gallery → Image grid: renders
Eklavya/frontend/src/pages/Gallery.jsx - Kids gallery → Image grid: renders
Eklavya/frontend/src/pages/Kids.jsx - Contact form → HTTP API client: submits message
Eklavya/frontend/src/pages/Contact.jsx - Login pages → HTTP API client: sends credentials
Eklavya/frontend/src/pages/Login.jsx - Login pages → Session state: sets session
Eklavya/frontend/src/pages/Login.jsx - Session state → HTTP API client: validates session
Eklavya/frontend/src/context/AuthContext.jsx - Parent payments → HTTP API client: manages payments
Eklavya/frontend/src/pages/Payment.jsx - Payment administration → HTTP API client: manages records
Eklavya/frontend/src/pages/AdminPayments.jsx - HTTP API client → FastAPI application: calls API
Eklavya/frontend/src/api/client.js - FastAPI application → Authentication routes: registers router
Eklavya/backend/app/main.py - FastAPI application → Contact handling: registers router
Eklavya/backend/app/main.py - FastAPI application → Image endpoints: registers router
Eklavya/backend/app/main.py - FastAPI application → Payment handling: registers router
Eklavya/backend/app/main.py - FastAPI application → Student and dues handling: registers router
Eklavya/backend/app/main.py - Authentication routes → Token and password logic: uses
Eklavya/backend/app/routes/auth.py - Authentication routes → User records: queries
Eklavya/backend/app/routes/auth.py - Token and password logic → User records: loads user
Eklavya/backend/app/auth.py - Contact handling → Contact records: records message
Eklavya/backend/app/routes/contact.py - Contact handling → Email delivery: sends notifications
Eklavya/backend/app/routes/contact.py - Image endpoints → Image blob storage: loads images
Eklavya/backend/app/routes/images.py - Payment handling → Payment records: manages submissions
Eklavya/backend/app/routes/payments.py - Payment handling → Payment due records: manages dues
Eklavya/backend/app/routes/payments.py - Payment handling → User records: looks up users
Eklavya/backend/app/routes/payments.py - Payment handling → Email delivery: sends notification
Eklavya/backend/app/routes/payments.py - Student and dues handling → Student records: manages students
Eklavya/backend/app/routes/students.py - Student and dues handling → Payment due records: manages dues
Eklavya/backend/app/routes/students.py - Student and dues handling → User records: queries parents
Eklavya/backend/app/routes/students.py - Authentication routes → Database session: gets session
Eklavya/backend/app/routes/auth.py - Contact handling → Database session: gets session
Eklavya/backend/app/routes/contact.py - Payment handling → Database session: gets session
Eklavya/backend/app/routes/payments.py - Student and dues handling → Database session: gets session
Eklavya/backend/app/routes/students.py