How parthaher22/partahera0604 works
E-GramPanchayat is a village-governance portal with citizen and Panchayat workflows for accounts, complaints, notices, taxes and payments, finance, staff, and audit. The FastAPI application registers the domain routers; those handlers enforce access rules and use a shared Supabase client for persistent operations. Some routes also write audit events or maintain Excel exports. The frontend files indicate a browser application, but no frontend source excerpt or README was provided to establish its runtime connections, so those links are omitted.
Main entry points: main.py FastAPI entry · supabase_client.py Supabase client · security.py Token and roles · audit_util.py Audit writer
Components 22
Web interface
- Web application
frontend/app.js - Translations
frontend/i18n.js - Web configuration
frontend/config.js
API and identity
- FastAPI entry
backend/app/main.py - Account and login
backend/app/routers/auth.py
Citizen services
- Complaints
backend/app/routers/complaints.py - Announcements
backend/app/routers/announcements.py - Notifications
backend/app/routers/notifications.py - Tax assessment
backend/app/routers/tax.py - Fee payments
backend/app/routers/payments.py - Pay endpoint
backend/app/routers/pay.py
Panchayat operations
- Dashboard
backend/app/routers/dashboard.py - Financial ledger
backend/app/routers/finance.py - Staff management
backend/app/routers/staff.py - Audit records
backend/app/routers/audit.py - Reference data
backend/app/routers/reference.py
Shared platform
- Token and roles
backend/app/security.py - Request schemas
backend/app/schemas.py - Audit writer
backend/app/audit_util.py - Villager Excel export
backend/app/villager_export.py - Supabase client
backend/app/supabase_client.py - Supabase data store
Connections 47
- FastAPI entry → Account and login: registers
backend/app/main.py - FastAPI entry → Complaints: registers
backend/app/main.py - FastAPI entry → Announcements: registers
backend/app/main.py - FastAPI entry → Dashboard: registers
backend/app/main.py - FastAPI entry → Reference data: registers
backend/app/main.py - FastAPI entry → Audit records: registers
backend/app/main.py - FastAPI entry → Staff management: registers
backend/app/main.py - FastAPI entry → Pay endpoint: registers
backend/app/main.py - FastAPI entry → Tax assessment: registers
backend/app/main.py - FastAPI entry → Notifications: registers
backend/app/main.py - FastAPI entry → Financial ledger: registers
backend/app/main.py - FastAPI entry → Fee payments: registers
backend/app/main.py - Account and login → Token and roles: uses
backend/app/routers/auth.py - Complaints → Token and roles: uses
backend/app/routers/complaints.py - Announcements → Token and roles: uses
backend/app/routers/announcements.py - Dashboard → Token and roles: uses
backend/app/routers/dashboard.py - Financial ledger → Token and roles: uses
backend/app/routers/finance.py - Fee payments → Token and roles: uses
backend/app/routers/payments.py - Staff management → Token and roles: uses
backend/app/routers/staff.py - Tax assessment → Token and roles: uses
backend/app/routers/tax.py - Audit records → Token and roles: uses
backend/app/routers/audit.py - Notifications → Token and roles: uses
backend/app/routers/notifications.py - Account and login → Request schemas: uses
backend/app/routers/auth.py - Complaints → Request schemas: uses
backend/app/routers/complaints.py - Account and login → Supabase client: reads and writes
backend/app/routers/auth.py - Complaints → Supabase client: reads and writes
backend/app/routers/complaints.py - Announcements → Supabase client: reads and writes
backend/app/routers/announcements.py - Dashboard → Supabase client: queries
backend/app/routers/dashboard.py - Reference data → Supabase client: queries
backend/app/routers/reference.py - Audit records → Supabase client: queries
backend/app/routers/audit.py - Staff management → Supabase client: reads and writes
backend/app/routers/staff.py - Tax assessment → Supabase client: reads and writes
backend/app/routers/tax.py - Notifications → Supabase client: reads and writes
backend/app/routers/notifications.py - Financial ledger → Supabase client: reads and writes
backend/app/routers/finance.py - Fee payments → Supabase client: reads and writes
backend/app/routers/payments.py - Supabase client → Supabase data store: connects
backend/app/supabase_client.py - Account and login → Audit writer: logs events
backend/app/routers/auth.py - Complaints → Audit writer: logs events
backend/app/routers/complaints.py - Announcements → Audit writer: logs events
backend/app/routers/announcements.py - Financial ledger → Audit writer: logs events
backend/app/routers/finance.py - Fee payments → Audit writer: logs events
backend/app/routers/payments.py - Staff management → Audit writer: logs events
backend/app/routers/staff.py - Tax assessment → Audit writer: logs events
backend/app/routers/tax.py - Audit writer → Supabase client: writes audit
backend/app/audit_util.py - Account and login → Villager Excel export: syncs accounts
backend/app/routers/auth.py - Villager Excel export → Supabase client: reads profiles
backend/app/villager_export.py - Announcements → Notifications: broadcasts notices
backend/app/routers/announcements.py