# manikanta7cheruku/weddingportfolio architecture

> Architecture diagram of the GitHub repository manikanta7cheruku/weddingportfolio, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/manikanta7cheruku/weddingportfolio
- Repository: https://github.com/manikanta7cheruku/weddingportfolio

## Overview

MVK Photography’s quote-and-booking product has a React client and Express/MongoDB API. Customers choose an event, configure services and albums, review pricing, and—on the wedding flow shown—submit a quote and verify by OTP. The API recalculates and stores wedding quotes, then sends SMS notifications on confirmation. Birthday quoting and quote downloads are also represented. Evidence is limited to the README (empty) and sampled files; birthday confirmation and custom-event submission appear client-side, so no server link is inferred.

Main entry points: [`reactfile/quote/src/features/quote/WeddingQuote.jsx`](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/WeddingQuote.jsx) (Wedding quote), [`api/src/index.js`](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/index.js) (API routes), [`reactfile/quote/src/features/birthday/BirthdayQuote.jsx`](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/birthday/BirthdayQuote.jsx) (Birthday quote), [`reactfile/quote/src/pages/Home.jsx`](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/pages/Home.jsx) (Event selection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Event discovery"]
  node_app["Client routes<br/>[App.jsx]"]
  node_home["Event selection<br/>[Home.jsx]"]
  node_eventcards["Event cards<br/>[EventCard.jsx]"]
  node_custom["Custom event form"]
  node_toast["Submit toast<br/>[Toast.jsx]"]
  node_bookingplaceholder["Other booking route"]
end

subgraph group_quoting["Quote configuration"]
  node_wedding["Wedding quote<br/>[WeddingQuote.jsx]"]
  node_birthday["Birthday quote<br/>[BirthdayQuote.jsx]"]
  node_birthdaypricing["Birthday pricing<br/>[birthdayPricing.js]"]
  node_weddingpricing["Wedding pricing<br/>[weddingPricing.js]"]
  node_calculator["Quote calculator"]
  node_serviceaccordion["Service selection<br/>[EventAccordion.jsx]"]
  node_album["Album selection<br/>[AlbumSection.jsx]"]
  node_summary["Review and export<br/>[SummarySection.jsx]"]
  node_floatingtotal["Live total<br/>[FloatingTotal.jsx]"]
  node_prewedding["Pre-wedding selection"]
end

subgraph group_api["Quote API"]
  node_apientry["API routes<br/>[index.js]"]
  node_servercalculator["Server quote calculator<br/>[calcQuote.js]"]
end

subgraph group_persistence["Persistence"]
  node_customerstore[("Customer records<br/>[Customer.js]")]
  node_quotestore[("Quote records<br/>[Quote.js]")]
  node_otpstore[("OTP records<br/>[Otp.js]")]
end

subgraph group_messaging["Notifications"]
  node_sms["SMS provider<br/>[sms.js]"]
  node_whatsapp["WhatsApp Cloud helper<br/>[whatsappCloud.js]"]
end

node_customer(("Customer"))
node_smsservice["SMS service"]
node_mongodb[("MongoDB")]

node_customer -->|"chooses event"| node_home
node_home -->|"renders"| node_eventcards
node_home -->|"renders"| node_custom
node_custom -->|"shows confirmation"| node_toast
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_wedding
node_app -->|"routes to"| node_bookingplaceholder
node_wedding -->|"loads pricing"| node_weddingpricing
node_birthday -->|"loads pricing"| node_birthdaypricing
node_wedding -->|"calculates selection"| node_calculator
node_birthday -->|"calculates selection"| node_calculator
node_wedding -->|"renders"| node_serviceaccordion
node_wedding -->|"renders"| node_album
node_wedding -->|"renders"| node_summary
node_birthday -->|"renders"| node_serviceaccordion
node_birthday -->|"renders"| node_album
node_birthday -->|"renders"| node_summary
node_customer -.->|"configures quote"| node_wedding
node_customer -.->|"configures quote"| node_birthday
node_wedding -->|"submits quote"| node_apientry
node_wedding -->|"requests OTP"| node_apientry
node_wedding -->|"verifies OTP"| node_apientry
node_apientry -->|"calculates totals"| node_servercalculator
node_apientry -->|"reads or creates"| node_customerstore
node_apientry -->|"reads or writes"| node_quotestore
node_apientry -->|"reads or writes"| node_otpstore
node_apientry -->|"sends messages"| node_sms
node_sms -.->|"sends SMS"| node_smsservice
node_apientry -->|"connects"| node_mongodb
node_whatsapp -.->|"integration unclear"| node_mongodb
node_wedding -.->|"renders total"| node_floatingtotal
node_wedding -.->|"renders selection"| node_prewedding

click node_app "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/App.jsx"
click node_home "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/pages/Home.jsx"
click node_eventcards "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/components/EventCard.jsx"
click node_custom "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/components/CustomEventCard.jsx"
click node_toast "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/components/Toast.jsx"
click node_wedding "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/WeddingQuote.jsx"
click node_birthday "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/birthday/BirthdayQuote.jsx"
click node_birthdaypricing "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/birthday/config/birthdayPricing.js"
click node_weddingpricing "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/config/weddingPricing.js"
click node_calculator "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/hooks/useQuoteCalculator.js"
click node_serviceaccordion "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/components/EventAccordion.jsx"
click node_album "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/components/AlbumSection.jsx"
click node_summary "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/components/SummarySection.jsx"
click node_floatingtotal "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/components/FloatingTotal.jsx"
click node_prewedding "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/components/PreWeddingAccordion.jsx"
click node_bookingplaceholder "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/pages/BookingPlaceholder.jsx"
click node_apientry "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/index.js"
click node_servercalculator "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/utils/calcQuote.js"
click node_customerstore "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/models/Customer.js"
click node_quotestore "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/models/Quote.js"
click node_otpstore "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/models/Otp.js"
click node_sms "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/lib/sms.js"
click node_whatsapp "https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/lib/whatsappCloud.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_home,node_eventcards,node_custom,node_toast,node_bookingplaceholder toneBlue
class node_wedding,node_birthday,node_birthdaypricing,node_weddingpricing,node_calculator,node_serviceaccordion,node_album,node_summary,node_floatingtotal,node_prewedding,node_mongodb toneAmber
class node_apientry,node_servercalculator toneMint
class node_customerstore,node_quotestore,node_otpstore toneRose
class node_sms,node_whatsapp,node_customer,node_smsservice toneIndigo
```

## Components

### Event discovery

- [Client routes](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/App.jsx): `reactfile/quote/src/App.jsx`
- [Event selection](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/pages/Home.jsx): `reactfile/quote/src/pages/Home.jsx`
- [Event cards](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/components/EventCard.jsx): `reactfile/quote/src/components/EventCard.jsx`
- [Custom event form](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/components/CustomEventCard.jsx): `reactfile/quote/src/components/CustomEventCard.jsx`
- [Submit toast](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/components/Toast.jsx): `reactfile/quote/src/components/Toast.jsx`
- [Other booking route](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/pages/BookingPlaceholder.jsx): `reactfile/quote/src/pages/BookingPlaceholder.jsx`

### Quote configuration

- [Wedding quote](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/WeddingQuote.jsx): `reactfile/quote/src/features/quote/WeddingQuote.jsx`
- [Birthday quote](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/birthday/BirthdayQuote.jsx): `reactfile/quote/src/features/birthday/BirthdayQuote.jsx`
- [Birthday pricing](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/birthday/config/birthdayPricing.js): `reactfile/quote/src/features/birthday/config/birthdayPricing.js`
- [Wedding pricing](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/config/weddingPricing.js): `reactfile/quote/src/features/quote/config/weddingPricing.js`
- [Quote calculator](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/hooks/useQuoteCalculator.js): `reactfile/quote/src/features/quote/hooks/useQuoteCalculator.js`
- [Service selection](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/components/EventAccordion.jsx): `reactfile/quote/src/features/quote/components/EventAccordion.jsx`
- [Album selection](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/components/AlbumSection.jsx): `reactfile/quote/src/features/quote/components/AlbumSection.jsx`
- [Review and export](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/components/SummarySection.jsx): `reactfile/quote/src/features/quote/components/SummarySection.jsx`
- [Live total](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/components/FloatingTotal.jsx): `reactfile/quote/src/features/quote/components/FloatingTotal.jsx`
- [Pre-wedding selection](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/reactfile/quote/src/features/quote/components/PreWeddingAccordion.jsx): `reactfile/quote/src/features/quote/components/PreWeddingAccordion.jsx`

### Quote API

- [API routes](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/index.js): `api/src/index.js`
- [Server quote calculator](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/utils/calcQuote.js): `api/src/utils/calcQuote.js`

### Persistence

- [Customer records](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/models/Customer.js): `api/src/models/Customer.js`
- [Quote records](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/models/Quote.js): `api/src/models/Quote.js`
- [OTP records](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/models/Otp.js): `api/src/models/Otp.js`

### Notifications

- [SMS provider](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/lib/sms.js): `api/src/lib/sms.js`
- [WhatsApp Cloud helper](https://github.com/manikanta7cheruku/weddingportfolio/blob/main/api/src/lib/whatsappCloud.js): `api/src/lib/whatsappCloud.js`

### Other components

- **Customer**
- **SMS service**
- **MongoDB**

## Connections

- Customer → Event selection: chooses event (evidence: `reactfile/quote/src/pages/Home.jsx`)
- Event selection → Event cards: renders (evidence: `reactfile/quote/src/pages/Home.jsx`)
- Event selection → Custom event form: renders (evidence: `reactfile/quote/src/pages/Home.jsx`)
- Custom event form → Submit toast: shows confirmation (evidence: `reactfile/quote/src/components/CustomEventCard.jsx`)
- Client routes → Event selection: routes to (evidence: `reactfile/quote/src/App.jsx`)
- Client routes → Wedding quote: routes to (evidence: `reactfile/quote/src/App.jsx`)
- Client routes → Other booking route: routes to (evidence: `reactfile/quote/src/App.jsx`)
- Wedding quote → Wedding pricing: loads pricing (evidence: `reactfile/quote/src/features/quote/WeddingQuote.jsx`)
- Birthday quote → Birthday pricing: loads pricing (evidence: `reactfile/quote/src/features/birthday/BirthdayQuote.jsx`)
- Wedding quote → Quote calculator: calculates selection (evidence: `reactfile/quote/src/features/quote/WeddingQuote.jsx`)
- Birthday quote → Quote calculator: calculates selection (evidence: `reactfile/quote/src/features/birthday/BirthdayQuote.jsx`)
- Wedding quote → Service selection: renders (evidence: `reactfile/quote/src/features/quote/WeddingQuote.jsx`)
- Wedding quote → Album selection: renders (evidence: `reactfile/quote/src/features/quote/WeddingQuote.jsx`)
- Wedding quote → Review and export: renders (evidence: `reactfile/quote/src/features/quote/WeddingQuote.jsx`)
- Birthday quote → Service selection: renders (evidence: `reactfile/quote/src/features/birthday/BirthdayQuote.jsx`)
- Birthday quote → Album selection: renders (evidence: `reactfile/quote/src/features/birthday/BirthdayQuote.jsx`)
- Birthday quote → Review and export: renders (evidence: `reactfile/quote/src/features/birthday/BirthdayQuote.jsx`)
- Customer → Wedding quote: configures quote
- Customer → Birthday quote: configures quote
- Wedding quote → API routes: submits quote (evidence: `reactfile/quote/src/features/quote/WeddingQuote.jsx`)
- Wedding quote → API routes: requests OTP (evidence: `reactfile/quote/src/features/quote/WeddingQuote.jsx`)
- Wedding quote → API routes: verifies OTP (evidence: `reactfile/quote/src/features/quote/WeddingQuote.jsx`)
- API routes → Server quote calculator: calculates totals (evidence: `api/src/index.js`)
- API routes → Customer records: reads or creates (evidence: `api/src/index.js`)
- API routes → Quote records: reads or writes (evidence: `api/src/index.js`)
- API routes → OTP records: reads or writes (evidence: `api/src/index.js`)
- API routes → SMS provider: sends messages (evidence: `api/src/index.js`)
- SMS provider → SMS service: sends SMS
- API routes → MongoDB: connects (evidence: `api/src/index.js`)
- WhatsApp Cloud helper → MongoDB: integration unclear
- Wedding quote → Live total: renders total
- Wedding quote → Pre-wedding selection: renders selection
