How mr-abhi-97/donation-project works
Raise India is a donation reconciliation and 80G tax-compliance portal. Donors submit identifying details and payment screenshots; the backend stores uploads, extracts payment data, screens receipts for fraud, and matches donations against imported bank statements. Administrators review or correct matches, verify donations, and issue receipts and compliance reports. The README documents these user-facing capabilities; sampled source confirms key backend calls. Some router and frontend links are based on README descriptions or SOURCE INDEX references, so unsampled implementation details are not inferred.
Main entry points: donations.py Donation Routes · main.py FastAPI App · reconciliation.py Review Routes · bank_statement.py Statement Routes
Components 21
Donor and Admin Portal
- Portal UI
frontend/src/app/page.tsx - API Client
frontend/src/lib/api.ts
API Workflows
- FastAPI App
backend/app/main.py - Donation Routes
backend/app/routers/donations.py - Donor Routes
backend/app/routers/donors.py - Statement Routes
backend/app/routers/bank_statement.py - Review Routes
backend/app/routers/reconciliation.py - Receipt Routes
backend/app/routers/receipts.py
Payment Processing
- Upload Storage
backend/app/services/storage_service.py - Receipt OCR
backend/app/services/ocr_service.py - Fraud Screening
backend/app/services/anti_fraud_service.py - Statement Verification
backend/app/services/statement_verifier.py - Reconciliation Engine
backend/app/services/reconciliation_service.py - Notifications
backend/app/services/notification_service.py - Background Tasks
backend/app/celery_app.py
Records and Compliance
- Relational Database
backend/app/database.py - Donation Records
backend/app/models.py - API Schemas
backend/app/schemas.py - 80G and 10BD
backend/app/services/receipt_service.py
Other components
- Donor
- Administrator
Connections 26
- Donor → Portal UI: submits donation
README.md - Administrator → Portal UI: manages donations
README.md - Portal UI → API Client: uses API
- API Client → FastAPI App: sends requests
- FastAPI App → Donation Routes: routes requests
backend/app/main.py - FastAPI App → Donor Routes: routes requests
backend/app/main.py - FastAPI App → Statement Routes: routes requests
backend/app/main.py - FastAPI App → Review Routes: routes requests
backend/app/main.py - FastAPI App → Receipt Routes: routes requests
backend/app/main.py - Donation Routes → Upload Storage: saves uploads
backend/app/routers/donations.py - Donation Routes → Receipt OCR: extracts payment data
backend/app/routers/donations.py - Donation Routes → Fraud Screening: screens receipt
backend/app/routers/donations.py - Donation Routes → Reconciliation Engine: checks bank match
backend/app/routers/donations.py - Statement Routes → Reconciliation Engine: uses matching
backend/app/routers/bank_statement.py - Statement Routes → Statement Verification: verifies statement
backend/app/routers/bank_statement.py - Review Routes → Reconciliation Engine: requests candidates
backend/app/routers/reconciliation.py - Review Routes → 80G and 10BD: issues certificate
backend/app/routers/reconciliation.py - Review Routes → Notifications: sends updates
backend/app/routers/reconciliation.py - Receipt Routes → 80G and 10BD: generates tax files
backend/app/routers/receipts.py - Donation Routes → Relational Database: reads and writes
backend/app/routers/donations.py - Statement Routes → Relational Database: reads and writes
backend/app/routers/bank_statement.py - Review Routes → Relational Database: reads and writes
backend/app/routers/reconciliation.py - Relational Database → Donation Records: maps records
backend/app/database.py - Donation Routes → API Schemas: validates payloads
backend/app/routers/donations.py - Background Tasks → Receipt OCR: runs tasks
backend/app/celery_app.py - Background Tasks → Reconciliation Engine: runs tasks
backend/app/celery_app.py