From the workbench

UHV

A modern, full-stack web application for transparent governance and community issue management in rural panchayats. Built for Velookara Panchayat, Kadupaserry, Thrissur.

View source on GitHub
  • TypeScript

From the repository

Read on GitHub

🏘️ Smart Rural Issue Management System

Developer guide Β· Source reference Β· Contributing

A modern, full-stack web application for transparent governance and community issue management in rural panchayats. Built for Velookara Panchayat, Kadupaserry, Thrissur.

✨ Features

For Citizens

  • πŸ” Secure Authentication - Register and login with JWT-based authentication
  • πŸ“ Report Issues - Submit issues with categories, priorities, locations, and images
  • πŸ“Š Track Progress - Monitor your submitted issues in real-time
  • πŸ”” Stay Informed - View official notices and announcements
  • πŸ• Report Stray Dogs - Dedicated module for stray animal reporting

For Administrators

  • πŸ‘¨β€πŸ’Ό Admin Dashboard - Comprehensive console for issue management
  • βœ… Update Status - Change issue status (pending β†’ in-progress β†’ resolved β†’ closed)
  • πŸ‘₯ Assign Issues - Assign issues to staff members
  • πŸ“’ Create Notices - Post system-wide announcements with priorities
  • πŸ“ˆ Analytics - View statistics and track resolution rates

General Features

  • πŸ“± Fully Responsive - Works seamlessly on desktop, tablet, and mobile
  • 🎨 Modern UI - Beautiful interface with Tailwind CSS and shadcn/ui
  • πŸ”’ Role-Based Access - Separate interfaces for citizens and admins
  • ⚑ Real-time Updates - Live data synchronization with backend
  • οΏ½οΏ½ RESTful API - Clean, documented API architecture

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • Supabase account (for PostgreSQL database)

Installation

  1. Install frontend dependencies

    npm install
    
  2. Install backend dependencies

    cd backend && npm install && cd ..
    
  3. Configure environment variables

    • Create .env in root with: VITE_API_URL=http://localhost:5000/api
    • Create .env in backend folder with Supabase credentials
  4. Initialize database

    • Run backend/src/config/schema.sql in Supabase SQL Editor
  5. Start servers

    # Terminal 1: Backend (port 5000)
    cd backend && npm run dev
    
    # Terminal 2: Frontend (port 3000)
    npm run dev
    

πŸ“š Technology Stack

Frontend: React 18 β€’ TypeScript β€’ Vite β€’ Tailwind CSS v4 β€’ shadcn/ui
Backend: Node.js β€’ Express β€’ PostgreSQL (Supabase) β€’ JWT β€’ bcrypt

πŸ“ Key Files

  • backend/src/config/schema.sql - Database schema
  • backend/make-admin.sql - Create admin users
  • backend/update-constraints.sql - Update DB constraints
  • TESTING_GUIDE.md - Testing instructions
  • PROJECT_STRUCTURE.md - Detailed project structure

πŸ”‘ API Endpoints

  • POST /api/auth/register - Register
  • POST /api/auth/login - Login
  • GET /api/issues - Get issues
  • POST /api/issues - Create issue
  • GET /api/notices - Get notices

πŸ“ Scripts

npm run dev      # Start development server
npm run build    # Build for production
npm run lint     # TypeScript check

Made with ❀️ for transparent rural governance

Developer guide Β· Source reference Β· Verification and operations