How syedfayazali/docufast-app works
DocuFast India is a customer-facing services platform for applications, appointments, and payments, with an admin area for managing orders and customers. Users enter through the routed web app, browse services, submit applications or book appointments, and can pay; admins manage operational records and send customer updates. The sampled server code confirms payment-order creation and webhook settlement, plus appointment email/push and application-update notifications. Many page and API implementations were not sampled, so those capabilities are represented without speculative internal links.
Main entry points: App.jsx Routes and app shell · core.js Server core helpers · push.js Web push delivery · appointment-mail.js Appointment notices
Components 26
Web app
- Routes and app shell
docufast/src/App.jsx - Authentication state
docufast/src/lib/AuthContext.jsx - Route scrolling
docufast/src/components/ScrollToTop.jsx
Customer operations
- Service catalog
docufast/src/pages/Services.jsx - Applications
docufast/src/pages/Applications.jsx - Application submission
docufast/src/pages/Apply.jsx - Appointments
docufast/src/lib/appointments.js - Appointment booking
docufast/src/pages/BookAppointment.jsx - Customer payments
docufast/src/pages/Pay.jsx
Admin operations
- Admin console
docufast/src/pages/admin/AdminDashboard.jsx - Service editor
docufast/src/pages/admin/ServiceEditor.jsx - Order management
docufast/src/pages/admin/AdminOrders.jsx - Appointment management
docufast/src/pages/admin/AdminAppointments.jsx - Payment management
docufast/src/pages/admin/AdminPayments.jsx
Server services
- API request layer
docufast/src/api/backend.js - Server core helpers
docufast/api/_lib/core.js - Create payment order
docufast/api/create-order.js - Payment webhook
docufast/api/razorpay-webhook.js - Appointment notices
docufast/api/appointment-mail.js - Application update email
docufast/api/application-update-mail.js - Application push
docufast/api/push-send.js - Push subscriptions
docufast/api/push-subscribe.js - Email delivery
docufast/api/_lib/mail.js - Web push delivery
docufast/api/_lib/push.js
Other components
- Customer or admin
- Supabase
Connections 27
- Customer or admin → Routes and app shell: uses
- Routes and app shell → Authentication state: provides auth
docufast/src/App.jsx - Routes and app shell → Route scrolling: mounts
docufast/src/App.jsx - Routes and app shell → Service catalog: routes to
docufast/src/App.jsx - Routes and app shell → Applications: routes to
docufast/src/App.jsx - Routes and app shell → Application submission: routes to
docufast/src/App.jsx - Routes and app shell → Appointment booking: routes to
docufast/src/App.jsx - Routes and app shell → Customer payments: routes to
docufast/src/App.jsx - Routes and app shell → Admin console: routes to
docufast/src/App.jsx - Routes and app shell → Service editor: routes to
docufast/src/App.jsx - Routes and app shell → Order management: routes to
docufast/src/App.jsx - Routes and app shell → Appointment management: routes to
docufast/src/App.jsx - Routes and app shell → Payment management: routes to
docufast/src/App.jsx - Create payment order → Server core helpers: uses helpers
docufast/api/create-order.js - Payment webhook → Server core helpers: settles order
docufast/api/razorpay-webhook.js - Appointment notices → Server core helpers: authenticates and queries
docufast/api/appointment-mail.js - Appointment notices → Web push delivery: sends notification
docufast/api/appointment-mail.js - Appointment notices → Email delivery: sends email
- Application update email → Server core helpers: authenticates and queries
docufast/api/application-update-mail.js - Application update email → Email delivery: sends email
docufast/api/application-update-mail.js - Application push → Server core helpers: authenticates and queries
docufast/api/push-send.js - Application push → Web push delivery: sends notification
docufast/api/push-send.js - Push subscriptions → Server core helpers: authenticates and stores
docufast/api/push-subscribe.js - Server core helpers → Email delivery: imports helpers
docufast/api/_lib/core.js - Server core helpers → Web push delivery: imports helpers
docufast/api/_lib/core.js - Server core helpers → Supabase: creates client
docufast/api/_lib/core.js - Web push delivery → Supabase: reads subscriptions
docufast/api/_lib/push.js