Skip to content

roguekishore/Argus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›๏ธ Argus - AI-Powered Grievance Redressal System

Application link : https://argusweb.tech/

Java Spring Boot React MySQL Tailwind CSS AWS S3 Twilio

A comprehensive municipal grievance management system with AI-powered complaint classification, multi-channel support, and automated escalation management.

Features โ€ข Architecture โ€ข Getting Started โ€ข API Documentation โ€ข Documentation


๐Ÿ“‹ Overview

Argus is an enterprise-grade public grievance redressal system designed for municipal corporations. It enables citizens to file complaints through multiple channels (Web Portal & WhatsApp), leverages AI for intelligent complaint classification and prioritization, and provides comprehensive dashboards for various administrative roles.

Key Highlights

  • ๐Ÿค– AI-Powered Classification - Automatic categorization, priority assignment, and SLA calculation using Google Gemini
  • ๐Ÿ“ฑ Multi-Channel Support - File complaints via Web Portal or WhatsApp (Twilio integration)
  • ๐Ÿ“ธ Image Evidence Analysis - Multimodal AI analyzes uploaded images for verification and severity assessment
  • โฐ Automated Escalation - Time-based escalation to department heads and municipal commissioners
  • ๐ŸŽฎ Gamification System - Points, tiers, and leaderboards for citizens and staff performance tracking
  • ๐Ÿ” Role-Based Access Control - Six distinct user roles with granular permissions
  • ๐Ÿ“Š Real-time Dashboards - Role-specific dashboards with actionable insights

โœจ Features

For Citizens

Feature Description
๐Ÿ“ File Complaints Submit grievances with descriptions, locations, and image evidence
๐Ÿ“ Location Mapping Interactive maps using Leaflet for precise location tagging
๐Ÿ“ฒ WhatsApp Integration Conversational complaint filing via WhatsApp
๐Ÿ”” Status Tracking Real-time updates on complaint progress
โญ Rate Resolutions Provide feedback on resolved complaints
๐Ÿ† Earn Points Gamification rewards for civic participation

For Staff & Department Heads

Feature Description
๐Ÿ“‹ Complaint Queue View and manage assigned complaints
โœ… Resolution Workflow Mark complaints as resolved with notes
๐Ÿ“ˆ Performance Metrics Track resolution times and satisfaction scores
๐Ÿšจ Escalation Alerts Notifications for SLA breaches and escalations

For Administrators

Feature Description
๐Ÿ‘ฅ User Management Create and manage citizens, staff, and department heads
๐Ÿข Department Configuration Manage 7 civic departments and staff assignments
๐Ÿ“‚ Category Management Configure complaint categories and mappings
โฑ๏ธ SLA Configuration Define service level agreements per category
๐Ÿ“Š Analytics Dashboard System-wide statistics and insights

AI & Automation

Feature Description
๐Ÿง  Smart Classification AI categorizes complaints into predefined categories
โšก Priority Assignment Context-aware priority (LOW to CRITICAL) with upgrade rules
๐Ÿ–ผ๏ธ Image Analysis Multimodal AI verifies evidence and detects safety risks
โฌ†๏ธ Auto-Escalation Scheduled escalation based on SLA breaches
๐Ÿ”„ State Machine Robust complaint lifecycle management

๐Ÿ—๏ธ Architecture

System Overview

1

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                              ARGUS ARCHITECTURE                              โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                             โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”‚
โ”‚  โ”‚   React      โ”‚     โ”‚   WhatsApp   โ”‚     โ”‚        Spring Boot           โ”‚โ”‚
โ”‚  โ”‚   Frontend   โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚   (Twilio)   โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚        Backend API           โ”‚โ”‚
โ”‚  โ”‚   :3000      โ”‚     โ”‚              โ”‚     โ”‚        :8080                 โ”‚โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”‚
โ”‚                                                          โ”‚                  โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”‚
โ”‚  โ”‚                          SERVICES                     โ”‚                 โ”‚โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚                 โ”‚โ”‚
โ”‚  โ”‚  โ”‚ Complaint   โ”‚  โ”‚ Escalation  โ”‚  โ”‚ Gamificationโ”‚   โ”‚                 โ”‚โ”‚
โ”‚  โ”‚  โ”‚ Service     โ”‚  โ”‚ Service     โ”‚  โ”‚ Service     โ”‚   โ”‚                 โ”‚โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚                 โ”‚โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚                 โ”‚โ”‚
โ”‚  โ”‚  โ”‚ AI/Gemini   โ”‚  โ”‚ S3 Storage  โ”‚  โ”‚ State       โ”‚   โ”‚                 โ”‚โ”‚
โ”‚  โ”‚  โ”‚ Service     โ”‚  โ”‚ Service     โ”‚  โ”‚ Machine     โ”‚   โ”‚                 โ”‚โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚                 โ”‚โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”‚
โ”‚                                                          โ”‚                  โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”‚
โ”‚  โ”‚                     EXTERNAL SERVICES                 โ–ผ                 โ”‚โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚โ”‚
โ”‚  โ”‚  โ”‚ Google      โ”‚  โ”‚ AWS S3      โ”‚  โ”‚ MySQL Database                  โ”‚ โ”‚โ”‚
โ”‚  โ”‚  โ”‚ Gemini AI   โ”‚  โ”‚ Storage     โ”‚  โ”‚ (Complaints, Users, Audit Logs) โ”‚ โ”‚โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Backend Package Structure

com.backend.springapp/
โ”œโ”€โ”€ SpringappApplication.java # Main application entry point
โ”œโ”€โ”€ audit/                  # Audit logging system
โ”œโ”€โ”€ config/                 # Application configuration
โ”œโ”€โ”€ controller/             # REST API controllers
โ”œโ”€โ”€ dto/                    # Data Transfer Objects
โ”œโ”€โ”€ enums/                  # Enumerations (State, Priority, Role, etc.)
โ”œโ”€โ”€ escalation/             # Escalation management system
โ”œโ”€โ”€ exception/              # Custom exceptions & handlers
โ”œโ”€โ”€ gamification/           # Points & leaderboard system
โ”œโ”€โ”€ model/                  # JPA entities
โ”œโ”€โ”€ notification/           # Notification services
โ”œโ”€โ”€ repository/             # Data access layer
โ”œโ”€โ”€ security/               # Authentication & authorization
โ”œโ”€โ”€ service/                # Business logic services
โ”œโ”€โ”€ statemachine/           # Complaint state transitions
โ””โ”€โ”€ whatsapp/               # WhatsApp/Twilio integration

Frontend Structure

reactapp/src/
โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ admin/              # Admin-specific components
โ”‚   โ”œโ”€โ”€ auth/               # Authentication components
โ”‚   โ”œโ”€โ”€ common/             # Reusable components (ComplaintCard, etc.)
โ”‚   โ”œโ”€โ”€ gamification/       # Leaderboards & badges
โ”‚   โ””โ”€โ”€ ui/                 # UI primitives (shadcn/ui)
โ”œโ”€โ”€ constants/              # Roles, permissions, configs
โ”œโ”€โ”€ context/                # React context (UserContext)
โ”œโ”€โ”€ hooks/                  # Custom React hooks
โ”œโ”€โ”€ layouts/                # Dashboard layouts
โ”œโ”€โ”€ pages/
โ”‚   โ”œโ”€โ”€ LandingPage.jsx     # Public landing page
โ”‚   โ”œโ”€โ”€ Login.jsx           # Login page
โ”‚   โ”œโ”€โ”€ Signup.jsx          # Registration page
โ”‚   โ””โ”€โ”€ dashboards/         # Role-specific dashboards
โ”œโ”€โ”€ router/                 # Routing configuration
โ”œโ”€โ”€ services/               # API service layer
โ””โ”€โ”€ lib/                    # Utility functions

๐Ÿš€ Getting Started

Prerequisites

  • Java 17 or higher
  • Node.js 18+ and npm
  • MySQL 8.0+
  • Maven 3.8+
  • AWS Account (for S3 image storage)
  • Twilio Account (for WhatsApp integration)

Backend Setup

  1. Clone the repository

    git clone https://github.com/your-org/argus.git
    cd argus/springapp
  2. Configure database

    # Create MySQL database
    mysql -u root -p -e "CREATE DATABASE springdb;"
  3. Set environment variables (or modify application.properties)

    export DB_URL=jdbc:mysql://localhost:3306/springdb
    export DB_USERNAME=root
    export DB_PASSWORD=your_password
    export API_SECRET_KEY=your_gemini_api_key
    export AWS_ACCESS_KEY_ID=your_aws_key
    export AWS_SECRET_ACCESS_KEY=your_aws_secret
    export AWS_S3_BUCKET=your_bucket_name
  4. Run the application

    # Development mode (initializes sample data)
    mvn spring-boot:run
    
    # Production mode
    export INIT_SAMPLE_DATA=false
    mvn spring-boot:run
  5. Backend starts at http://localhost:8080

Frontend Setup

  1. Navigate to frontend directory

    cd argus/reactapp
  2. Install dependencies

    npm install
  3. Configure API endpoint

    # Create .env file
    echo "REACT_APP_API_URL=http://localhost:8080/api" > .env
  4. Start development server

    npm start
  5. Frontend starts at http://localhost:3000

Default Test Users (Development Mode)

Role Email Password
Citizen citizen@gmail.com argusargus
Staff roads1@gmail.com argusargus
Department Head roadshead@gmail.com argusargus
Admin admin@gmail.com argusargus
Super Admin superadmin@gmail.com argusargus
Municipal Commissioner commissioner@gmail.com argusargus

๐Ÿ“ก API Documentation

Core Endpoints

Complaints

POST   /api/complaints/citizen/{citizenId}              # Create complaint
POST   /api/complaints/citizen/{citizenId}/with-image   # Create with image
GET    /api/complaints/{complaintId}                    # Get complaint
GET    /api/complaints/{complaintId}/details            # Get full details
PUT    /api/complaints/{id}/state                       # Update state
PUT    /api/complaints/{id}/resolve                     # Mark resolved
PUT    /api/complaints/{id}/close                       # Close complaint

Users

GET    /api/users                                       # Get all users
POST   /api/users                                       # Create user
POST   /api/users/staff?deptId=1                        # Create staff
GET    /api/users/department/{deptId}/staff             # Get department staff
PUT    /api/users/{userId}/assign-head?deptId=1         # Assign as dept head

Departments & Categories

GET    /api/departments                                 # Get all departments
GET    /api/categories                                  # Get all categories
POST   /api/categories                                  # Create category

SLA Management

GET    /api/sla                                         # Get all SLA configs
POST   /api/sla?categoryId=1&departmentId=1             # Create SLA
PUT    /api/sla/{id}                                    # Update SLA

Escalations

GET    /api/complaints/{id}/escalations                 # Get escalation history
GET    /api/escalations/overdue                         # Get overdue complaints
GET    /api/escalations/stats                           # Get statistics
POST   /api/escalations/trigger                         # Manual trigger

Gamification

GET    /api/gamification/citizens/leaderboard       # Citizen leaderboard
GET    /api/gamification/staff/leaderboard          # Staff leaderboard
GET    /api/gamification/citizens/{citizenId}/points # Citizen points
GET    /api/gamification/staff/{staffId}/stats      # Staff statistics
GET    /api/gamification/thresholds                 # Tier thresholds

๐Ÿ“š Documentation

Document Description
AI_INTEGRATION.md AI classification prompts and examples
DEPLOYMENT.md Production deployment guide
ENDPOINTS.md Complete API reference
ERROR_HANDLING.md Error codes and handling
ESCALATION_MANAGEMENT.md Escalation rules and architecture
GAMIFICATION.md Points system and leaderboards
IMAGE_INTEGRATION.md Image upload and analysis
STAFF_MANAGEMENT.md Staff roles and assignment
STATE_MANAGEMENT.md Complaint lifecycle states
WHATSAPP_INTEGRATION.md WhatsApp/Twilio setup
FRONTEND_ARCHITECTURE.md Frontend structure guide

๐Ÿ”ง Configuration

Environment Variables

Variable Default Description
DB_URL jdbc:mysql://localhost:3306/springdb Database connection URL
DB_USERNAME root Database username
DB_PASSWORD root Database password
INIT_SAMPLE_DATA true Initialize sample data
API_SECRET_KEY - Google Gemini API key
AWS_S3_ENABLED true Enable S3 storage
AWS_ACCESS_KEY_ID - AWS access key
AWS_SECRET_ACCESS_KEY - AWS secret key
AWS_S3_BUCKET - S3 bucket name
AWS_REGION ap-south-1 AWS region
TWILIO_ENABLED true Enable WhatsApp
TWILIO_ACCOUNT_SID - Twilio Account SID
TWILIO_AUTH_TOKEN - Twilio Auth Token
ESCALATION_CRON 0 0 0/6 * * * Escalation check interval

๐Ÿข User Roles & Permissions

Role Permissions
CITIZEN File complaints, track status, rate resolutions, view leaderboard
STAFF View assigned complaints, mark as resolved
DEPT_HEAD Manage department staff, view department complaints, handle L1 escalations
ADMIN Manage staff/heads, departments, categories, SLAs, all complaints
SUPER_ADMIN Full system access including user management
MUNICIPAL_COMMISSIONER View all complaints, handle L2 escalations, system oversight

๐Ÿ”„ Complaint Lifecycle

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     AI Processing     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     Staff Action     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  FILED  โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ  โ”‚ IN_PROGRESS โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ   โ”‚ RESOLVED โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
     โ”‚                                   โ”‚                                   โ”‚
     โ”‚                                   โ”‚                                   โ”‚ Citizen/Auto
     โ”‚                                   โ”‚                                   โ–ผ
     โ”‚                                   โ”‚                              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Any State โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถโ”‚ CLOSED  โ”‚
                         โ”‚                                              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                         โ”‚
                         โ–ผ
                   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                   โ”‚ CANCELLED โ”‚
                   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“ˆ Escalation Levels

Level Assignee Trigger
L0 Staff Default (within SLA)
L1 Department Head SLA + 1 day breached
L2 Municipal Commissioner SLA + 3 days breached

๐ŸŽฎ Gamification System

Citizen Points

Action Points
File complaint +10
Complaint resolved +20
Receive upvote +5
Clean record bonus +50

Citizen Tiers

Tier Points Benefit
๐Ÿฅ‰ Bronze 0+ Base level
๐Ÿฅˆ Silver 100+ Priority boost
๐Ÿฅ‡ Gold 200+ Enhanced visibility
๐Ÿ’Ž Platinum 500+ Top recognition

๐Ÿ› ๏ธ Tech Stack

Backend

  • Framework: Spring Boot 3.5
  • Language: Java 17
  • Database: MySQL 8.0
  • ORM: Spring Data JPA / Hibernate
  • Validation: Jakarta Validation
  • AI: Google Gemini API
  • Storage: AWS S3
  • Messaging: Twilio SDK

Frontend

  • Framework: React 19
  • Routing: React Router 7
  • Styling: Tailwind CSS 3.4
  • Maps: Leaflet / React-Leaflet
  • Icons: Lucide React
  • Build: Create React App

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ž Support

For support, please send a mail to contactforkishore@gmail.com .


Built by Maverick for better civic engagement

About

An AI-assisted public grievance redressal system with complaint classification, escalation workflows, and multi-channel complaint intake.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages