How himmatmundhe07/samadhan_setu works
Societal Innovation Portal connects citizen reporting (web and Samadhan Setu mobile) to backend triage, institutional assignment, solution proposals and industry funding, with government oversight. The web app provides role-based portals; the mobile app emphasizes reporting, status tracking, notifications and voice/local-language access. Backend excerpts show report creation, queued AI processing and government analytics; other workflow stages are documented in the README and represented at their available module paths. Arrows reflect sampled calls or explicit route mounting; unsampled details are not inferred.
Main entry points: app.js Express routes · problem.controller.js Institution assignment · government.controller.js Government oversight · App.tsx Role portals
Components 25
User applications
- Role portals
apps/web/src/App.tsx - Samadhan Setu
App/Samadhan_Setu_App/app/(tabs)/dashboard.tsx - Web API client
apps/web/src/lib/apiClient.ts - Mobile API
App/Samadhan_Setu_App/src/services/api.ts
Backend API
- Express routes
backend/src/app.js - Authentication
backend/src/controllers/auth.controller.js
Civic workflow
- Problem reporting
backend/src/controllers/problem.controller.js - AI triage worker
backend/src/queue/worker.js - Institution assignment
backend/src/controllers/problem.controller.js - University directory
backend/src/controllers/university.controller.js - Solution projects
backend/src/controllers/project.controller.js - Industry partnerships
apps/web/src/pages/industry/Partnerships.tsx - Government oversight
backend/src/controllers/government.controller.js - Voice services
backend/src/controllers/voice.controller.js
Persistence and events
- Problem records
backend/src/models/problem.model.js - Project records
backend/src/models/project.model.js - User records
backend/src/models/user.model.js - Classification queue
backend/src/queue/producer.js - Realtime events
backend/src/config/socket.js - MongoDB
backend/src/config/db.js
External services
- AI classification provider
- Bhashini language services
Other components
- Citizen
- Industry partner
- University user
Connections 33
- Citizen → Role portals: reports or tracks
- Citizen → Samadhan Setu: reports or tracks
- Role portals → Web API client: requests
- Samadhan Setu → Mobile API: requests
- Web API client → Express routes: calls API
- Mobile API → Express routes: calls API
- Express routes → Authentication: routes auth
- Express routes → Problem reporting: routes reports
- Express routes → Solution projects: routes projects
- Express routes → University directory: routes directory
- Express routes → Government oversight: routes oversight
- Express routes → Voice services: routes voice
- Authentication → User records: reads and writes
- Problem reporting → Problem records: creates and queries
- Problem reporting → Classification queue: enqueues classification
- Classification queue → AI triage worker: dispatches jobs
- AI triage worker → AI classification provider: classifies reports
- AI triage worker → Problem reporting: updates via internal API
- Problem reporting → Institution assignment: assigns institution
- Institution assignment → User records: validates institution
- Institution assignment → Problem records: updates assignment
- Institution assignment → Project records: creates project
- Institution assignment → Realtime events: emits assignment
- University user → Role portals: manages proposals
- Industry partner → Role portals: funds solutions
- Industry partnerships → Web API client: requests partnership data
- Solution projects → Project records: reads and writes
- University directory → MongoDB: stores institutions
- Government oversight → Problem records: aggregates reports
- Government oversight → Project records: aggregates projects
- Government oversight → User records: aggregates users
- Voice services → Bhashini language services: transcribes or speaks
- Express routes → MongoDB: connects