# mishrasatyam01473-ai/crowd-funding-app architecture

> Architecture diagram of the GitHub repository mishrasatyam01473-ai/crowd-funding-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mishrasatyam01473-ai/crowd-funding-app
- Repository: https://github.com/mishrasatyam01473-ai/crowd-funding-app

## Overview

This is a full-stack crowdfunding platform: creators register campaigns, users browse and donate, and account holders track campaigns or donations; inquiries provide a separate support path. The React app routes and gates these experiences, while Express provides the documented API, MongoDB persistence, Razorpay order/signature handling, and Excel audit records. Frontend excerpts show several API calls and client-side flows; backend internals were not excerpted, so backend relationships below rely on README statements rather than inspected implementation.

Main entry points: [`crowd-funding-app/src/App.jsx`](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/App.jsx) (Route shell), [`backend/server.js`](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/backend/server.js) (Payment verification API), [`crowd-funding-app/src/pages/DonationForm.jsx`](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/DonationForm.jsx) (Donation checkout), [`crowd-funding-app/src/pages/Login.jsx`](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/Login.jsx) (Sign-in and signup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web application"]
  node_app["Route shell<br/>[App.jsx]"]
  node_nav["Navigation<br/>[Navbar.jsx]"]
  node_authstate["Session auth<br/>[auth.js]"]
end

subgraph group_fundraising["Campaign fundraising"]
  node_discovery["Campaign discovery<br/>[IndexPage.jsx]"]
  node_registration["Campaign registration"]
  node_donate["Donation checkout<br/>[DonationForm.jsx]"]
  node_history["Donation history"]
end

subgraph group_accounts["Accounts and support"]
  node_login["Sign-in and signup<br/>[Login.jsx]"]
  node_dashboard["Creator dashboard<br/>[Dashboard.jsx]"]
  node_inquiry["Support inquiry<br/>[QueryForm.jsx]"]
end

subgraph group_backend["API and records"]
  node_api["Express API<br/>[server.js]"]
  node_campaignapi["Campaign and account API<br/>[server.js]"]
  node_paymentapi["Payment verification API<br/>[server.js]"]
  node_queryapi["Inquiry API<br/>[server.js]"]
  node_mongo[("MongoDB")]
  node_sheets["Excel audit files"]
end

node_visitor(("Platform user"))
node_razorpay["Razorpay"]

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_nav
node_app -->|"routes"| node_discovery
node_app -->|"routes"| node_registration
node_app -->|"routes"| node_donate
node_app -->|"routes"| node_history
node_app -->|"routes"| node_login
node_app -->|"routes"| node_dashboard
node_app -->|"routes"| node_inquiry
node_app -->|"checks session"| node_authstate
node_nav -->|"reads and clears"| node_authstate
node_discovery -->|"fetches campaigns"| node_campaignapi
node_registration -->|"registers campaign"| node_campaignapi
node_login -->|"authenticates"| node_campaignapi
node_login -->|"stores session"| node_authstate
node_dashboard -->|"fetches account"| node_campaignapi
node_donate -->|"creates order"| node_paymentapi
node_donate -->|"opens checkout"| node_razorpay
node_paymentapi -->|"verifies payment"| node_razorpay
node_paymentapi -->|"records donations"| node_mongo
node_paymentapi -->|"audits donations"| node_sheets
node_history -->|"loads records"| node_api
node_inquiry -->|"submits inquiry"| node_queryapi
node_queryapi -->|"stores inquiries"| node_mongo
node_queryapi -->|"audits inquiries"| node_sheets
node_api -.->|"dispatches routes"| node_campaignapi
node_api -.->|"dispatches routes"| node_paymentapi
node_api -.->|"dispatches routes"| node_queryapi

click node_app "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/App.jsx"
click node_nav "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/components/Navbar.jsx"
click node_authstate "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/utils/auth.js"
click node_discovery "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/components/IndexPage.jsx"
click node_registration "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/CreateProgramme.jsx"
click node_donate "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/DonationForm.jsx"
click node_history "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/DonationHistory.jsx"
click node_login "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/Login.jsx"
click node_dashboard "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/Dashboard.jsx"
click node_inquiry "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/QueryForm.jsx"
click node_api "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/backend/server.js"
click node_campaignapi "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/backend/server.js"
click node_paymentapi "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/backend/server.js"
click node_queryapi "https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/backend/server.js"
click node_sheets "https://github.com/mishrasatyam01473-ai/crowd-funding-app/tree/main/data"

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_nav,node_authstate,node_visitor toneBlue
class node_discovery,node_registration,node_donate,node_history toneAmber
class node_login,node_dashboard,node_inquiry toneMint
class node_api,node_campaignapi,node_paymentapi,node_queryapi,node_mongo,node_sheets toneRose
class node_razorpay toneIndigo
```

## Components

### Web application

- [Route shell](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/App.jsx): `crowd-funding-app/src/App.jsx`
- [Navigation](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/components/Navbar.jsx): `crowd-funding-app/src/components/Navbar.jsx`
- [Session auth](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/utils/auth.js): `crowd-funding-app/src/utils/auth.js`

### Campaign fundraising

- [Campaign discovery](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/components/IndexPage.jsx): `crowd-funding-app/src/components/IndexPage.jsx`
- [Campaign registration](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/CreateProgramme.jsx): `crowd-funding-app/src/pages/CreateProgramme.jsx`
- [Donation checkout](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/DonationForm.jsx): `crowd-funding-app/src/pages/DonationForm.jsx`
- [Donation history](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/DonationHistory.jsx): `crowd-funding-app/src/pages/DonationHistory.jsx`

### Accounts and support

- [Sign-in and signup](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/Login.jsx): `crowd-funding-app/src/pages/Login.jsx`
- [Creator dashboard](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/Dashboard.jsx): `crowd-funding-app/src/pages/Dashboard.jsx`
- [Support inquiry](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/crowd-funding-app/src/pages/QueryForm.jsx): `crowd-funding-app/src/pages/QueryForm.jsx`

### API and records

- [Express API](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/backend/server.js): `backend/server.js`
- [Campaign and account API](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/backend/server.js): `backend/server.js`
- [Payment verification API](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/backend/server.js): `backend/server.js`
- [Inquiry API](https://github.com/mishrasatyam01473-ai/crowd-funding-app/blob/main/backend/server.js): `backend/server.js`
- **MongoDB**
- [Excel audit files](https://github.com/mishrasatyam01473-ai/crowd-funding-app/tree/main/data): `data`

### Other components

- **Platform user**
- **Razorpay**

## Connections

- Platform user → Route shell: opens
- Route shell → Navigation: renders (evidence: `crowd-funding-app/src/App.jsx`)
- Route shell → Campaign discovery: routes (evidence: `crowd-funding-app/src/App.jsx`)
- Route shell → Campaign registration: routes (evidence: `crowd-funding-app/src/App.jsx`)
- Route shell → Donation checkout: routes (evidence: `crowd-funding-app/src/App.jsx`)
- Route shell → Donation history: routes (evidence: `crowd-funding-app/src/App.jsx`)
- Route shell → Sign-in and signup: routes (evidence: `crowd-funding-app/src/App.jsx`)
- Route shell → Creator dashboard: routes (evidence: `crowd-funding-app/src/App.jsx`)
- Route shell → Support inquiry: routes (evidence: `crowd-funding-app/src/App.jsx`)
- Route shell → Session auth: checks session (evidence: `crowd-funding-app/src/App.jsx`)
- Navigation → Session auth: reads and clears (evidence: `crowd-funding-app/src/components/Navbar.jsx`)
- Campaign discovery → Campaign and account API: fetches campaigns (evidence: `crowd-funding-app/src/components/IndexPage.jsx`)
- Campaign registration → Campaign and account API: registers campaign (evidence: `README.md`)
- Sign-in and signup → Campaign and account API: authenticates (evidence: `README.md`)
- Sign-in and signup → Session auth: stores session (evidence: `crowd-funding-app/src/pages/Login.jsx`)
- Creator dashboard → Campaign and account API: fetches account (evidence: `crowd-funding-app/src/pages/Dashboard.jsx`)
- Donation checkout → Payment verification API: creates order (evidence: `crowd-funding-app/src/pages/DonationForm.jsx`)
- Donation checkout → Razorpay: opens checkout (evidence: `README.md`)
- Payment verification API → Razorpay: verifies payment (evidence: `README.md`)
- Payment verification API → MongoDB: records donations (evidence: `README.md`)
- Payment verification API → Excel audit files: audits donations (evidence: `README.md`)
- Donation history → Express API: loads records (evidence: `README.md`)
- Support inquiry → Inquiry API: submits inquiry (evidence: `crowd-funding-app/src/pages/QueryForm.jsx`)
- Inquiry API → MongoDB: stores inquiries (evidence: `README.md`)
- Inquiry API → Excel audit files: audits inquiries (evidence: `README.md`)
- Express API → Campaign and account API: dispatches routes (evidence: `backend/server.js`)
- Express API → Payment verification API: dispatches routes (evidence: `backend/server.js`)
- Express API → Inquiry API: dispatches routes (evidence: `backend/server.js`)
