How harshal-cpu/ngo-connect works
CONNECT NGO is a donation platform connecting donors, NGOs, and administrators. The principal workflow is account access, NGO discovery, donation or request activity, and tracking through role-specific dashboards. The map combines the documented product capabilities with source-index references and the sampled route wiring; unsampled route internals are represented only at their documented subsystem level.
Main entry points: App.tsx Routes and layout · server.js Express API server · api.ts HTTP API client · payments.js Payment processing
Components 29
Web application
- Routes and layout
client/src/App.tsx - Home and about
client/src/components/HomePage.tsx - Role dashboards
client/src/components/Dashboard.tsx - Donor activity
client/src/components/DonorDashboard.tsx - NGO analytics
client/src/components/NGODashboard.tsx - Admin controls
client/src/components/AdminDashboard.tsx
Identity and access
- Login and registration
client/src/components/Login.tsx - Auth state
client/src/context/AuthContext.tsx - HTTP API client
client/src/services/api.ts - Authentication routes
routes/auth.js - JWT access control
middleware/auth.js - User records
models/User.js
NGO and giving
- Browse NGOs
client/src/components/BrowseNGOs.tsx - NGO detail and profile
client/src/components/MyNGOProfile.tsx - NGO data service
client/src/services/ngoService.ts - NGO and browse routes
routes/ngo.js - NGO records
models/NGO.js - Donation checkout
client/src/components/DonationPage.tsx - Donation requests
client/src/components/DonationRequests.tsx - Create request
client/src/components/CreateDonationRequest.tsx - Donation routes
routes/donations.js - Payment processing
routes/payments.js - Donation request records
models/DonationRequest.js - Donation transactions
models/Transaction.js
Platform operations
- Express API server
server.js - Admin routes
routes/admin.js - MongoDB
- Payment gateway
Other components
- Donors, NGOs, admins
Connections 40
- Donors, NGOs, admins → Routes and layout: use
README.md - Routes and layout → Home and about: routes to
client/src/App.tsx - Routes and layout → Login and registration: routes to
client/src/App.tsx - Routes and layout → Role dashboards: routes to
client/src/App.tsx - Routes and layout → Browse NGOs: routes to
client/src/App.tsx - Routes and layout → NGO detail and profile: routes to
client/src/App.tsx - Routes and layout → Donation checkout: routes to
client/src/App.tsx - Routes and layout → Donation requests: routes to
client/src/App.tsx - Routes and layout → Create request: routes to
client/src/App.tsx - Role dashboards → Donor activity: selects
client/src/components/Dashboard.tsx - Role dashboards → Admin controls: renders
client/src/components/Dashboard.tsx - Login and registration → Auth state: authenticates via
client/src/components/Login.tsx - Auth state → HTTP API client: calls
client/src/context/AuthContext.tsx - HTTP API client → Express API server: sends requests
README.md - Express API server → Authentication routes: mounts
server.js - Express API server → NGO and browse routes: mounts
server.js - Express API server → Donation routes: mounts
server.js - Express API server → Payment processing: mounts
server.js - Express API server → Admin routes: mounts
server.js - Authentication routes → User records: reads and writes
routes/auth.js - Authentication routes → NGO records: creates profile
routes/auth.js - Authentication routes → JWT access control: checks identity
routes/auth.js - JWT access control → User records: loads user
middleware/auth.js - Browse NGOs → NGO data service: loads NGOs
client/src/components/BrowseNGOs.tsx - NGO data service → NGO and browse routes: fetches NGO data
client/src/services/ngoService.ts - NGO detail and profile → HTTP API client: calls
client/src/components/MyNGOProfile.tsx - Donation checkout → HTTP API client: calls
client/src/components/DonationPage.tsx - Donation requests → HTTP API client: calls
client/src/components/DonationRequests.tsx - Create request → HTTP API client: calls
client/src/components/CreateDonationRequest.tsx - Donor activity → HTTP API client: loads activity
client/src/components/DonorDashboard.tsx - NGO analytics → HTTP API client: loads analytics
client/src/components/NGODashboard.tsx - Express API server → NGO records: queries
server.js - Express API server → Donation transactions: queries
server.js - Payment processing → Donation transactions: records payments
routes/payments.js - Payment processing → NGO records: updates donation totals
routes/payments.js - Payment processing → JWT access control: requires identity
routes/payments.js - Donation routes → Donation request records: manages requests
- Payment processing → Payment gateway: processes payment
README.md - Express API server → MongoDB: connects
server.js - Admin controls → HTTP API client: calls