How balajikarthik2004/meenakshi-devotee works
Purpose and Runtime
Sri Meenakshi Temple’s Devotee App is a Vite/React/TypeScript SPA prototype for public temple engagement and authenticated devotee self-service: puja sponsorships, donations, events, membership, calendar, receipts, and profile views. It runs entirely against deterministic local mock data, with Vercel configured for SPA deployment.
Paths: src/main.tsx, src/App.tsx, vercel.json.
Application Shell and Routing
main.tsx mounts the React application; App.tsx is the application composition boundary, expected to own route definitions, shared providers, and page-level navigation. Shared header/footer/layout components establish the persistent site shell, while pages represent public, account, and transaction-oriented route endpoints.
Paths: src/App.tsx, src/components/layout/layouts.tsx, src/pages/BookingFlow.tsx.
Public Discovery Experience
The home, event, puja catalog, facility, membership, and about pages expose temple programming and conversion paths. The homepage is visually anchored by the rotating festival/deity hero and public financial-transparency presentation; image/video assets are served locally from the public bundle.
Paths: src/pages/Home.tsx, src/components/shared/HeroBanner.tsx, public/deities/hero.mp4.
Puja Booking Workflow
Puja sponsorship is the primary multi-step transactional flow. The booking page consumes catalog and scheduling data, collects sponsorship/sankalpam and payment selections through shared primitives, then renders a prototype success outcome. Devotees can subsequently view scheduled items in their timeline and calendar.
Paths: src/pages/BookingFlow.tsx, src/components/shared/SankalpamFieldRepeater.tsx, src/components/devotee/MyPujaTimeline.tsx.
Donations, Receipts, and Transparency
Donation flows select funds, preset/custom amounts, recurrence, and payment method, then present tax-receipt information. Transparency UI surfaces reconciled sponsorship and donation totals; mock seed generation guarantees repeatable figures, including the published $723,000 reconciliation.
Paths: src/pages/Donate.tsx, src/components/shared/TaxReceiptPreview.tsx, src/lib/data/mock/seed.ts.
Calendar and Event Domain
Calendar and event pages provide month-level discovery, event details, and filtering for a signed-in devotee’s pujas. Domain scheduling/calendar utilities separate date and occurrence calculations from rendering components.
Paths: src/pages/CalendarPage.tsx, src/pages/EventDetail.tsx, src/lib/calendar.ts.
Data, Identity, and Integration Boundary
Domain types and the api.ts module form the intended backend substitution boundary. Current implementations are local seeded fixtures covering bookings, catalog, donations, events, memberships, temple data, and users. Zustand-backed auth provides prototype sign-in state; any email/phone resolves to a seeded user behavior described by the prototype.
Paths: src/lib/data/api.ts, src/lib/data/types.ts, src/lib/store/auth.ts.
UI System and Deployment
Reusable shared components encode domain-facing UI patterns, while src/components/ui/ supplies lower-level shadcn-style controls. Tailwind v4 supplies styling. The app has no live external services at present; fonts and deity imagery are bundled locally, and Vercel hosts the built SPA with route rewrites.
Paths: src/components/ui, src/index.css, public/fonts.
Main entry points: App.tsx App shell & routes · api.ts Backend substitution API · BookingFlow.tsx Puja booking flow · Donate.tsx Donations & receipts
Components 20
SPA Runtime
- React entry · Mounts the Vite React application.
src/main.tsx - App shell & routes · Owns routes, providers, and page navigation.
src/App.tsx - Persistent layout · Shared header, footer, and layout components.
src/components/layout/layouts.tsx - Vercel SPA hosting · Hosts the built SPA with route rewrites.
vercel.json
Devotee Experiences
- Public discovery pages · Home, catalog, facilities, membership, and about conversion paths.
src/pages/Home.tsx - Puja booking flow · Multi-step sponsorship, sankalpam, payment, and success flow.
src/pages/BookingFlow.tsx - My puja timeline · Shows scheduled devotee pujas after booking.
src/components/devotee/MyPujaTimeline.tsx - Donations & receipts · Fund, amount, recurrence, payment, and receipt flow.
src/pages/Donate.tsx - Calendar & event routes · Month discovery, event details, and devotee puja filtering.
src/pages/CalendarPage.tsx
Domain & Data
- Calendar utilities · Date and occurrence calculations separate from rendering.
src/lib/calendar.ts - Prototype auth store · Maps any email or phone sign-in to seeded-user state.
src/lib/store/auth.ts - Backend substitution API · Intended interface for replacing local implementations.
src/lib/data/api.ts - Domain types · Types for bookings, catalog, donations, events, memberships, temple data, and users.
src/lib/data/types.ts - Deterministic mock seed · Produces repeatable domain data and reconciliation totals.
src/lib/data/mock/seed.ts
UI & Assets
- Festival hero · Rotating deity and festival presentation.
src/components/shared/HeroBanner.tsx - Sankalpam inputs
src/components/shared/SankalpamFieldRepeater.tsx - Tax receipt preview
src/components/shared/TaxReceiptPreview.tsx - UI primitives · Lower-level shadcn-style controls.
src/components/ui - Tailwind styling
src/index.css - Bundled media · Local deity video and fonts; no external media service.
public/deities/hero.mp4
Connections 22
- React entry → App shell & routes: mounts
- App shell & routes → Persistent layout: uses
- App shell & routes → Public discovery pages: routes to
- App shell & routes → Puja booking flow: routes to
- App shell & routes → Donations & receipts: routes to
- App shell & routes → Calendar & event routes: routes to
- App shell & routes → Prototype auth store: provides session state
- Public discovery pages → Festival hero: renders
- Festival hero → Bundled media: plays
- Puja booking flow → Sankalpam inputs: collects
- Puja booking flow → Backend substitution API: reads and creates
- Puja booking flow → My puja timeline: scheduled items appear in
- Donations & receipts → Tax receipt preview: renders
- Donations & receipts → Backend substitution API: reads and records
- Calendar & event routes → Calendar utilities: calculates with
- Calendar & event routes → Backend substitution API: loads events and pujas
- Backend substitution API → Domain types: uses
- Backend substitution API → Deterministic mock seed: currently backed by
- My puja timeline → Backend substitution API: loads scheduled pujas
- App shell & routes → UI primitives: composes
- App shell & routes → Tailwind styling: applies
- Vercel SPA hosting → App shell & routes: serves SPA