Manage petitions like a pro! ๐
Comprehensive Petition Management System for Hyderabad Disaster Response and Asset Protection Agency
A modern, full-featured web application for managing petitions and complaints within the Hyderabad Disaster Response and Asset Protection Agency (HYDRAA). Think of it as your digital command center for efficient petition processing! ๐
- ๐ Multi-role authentication (Reception, Officer, Commissioner, Admin)
- ๐ Streamlined petition creation and management
- ๐ฏ Role-based dashboards with real-time statistics
- ๐ Advanced analytics and reporting
- ๐ Workflow automation from submission to decision
- ๐ฑ Responsive design for all devices
- โก Lightning-fast performance with Vite
Secure authentication with role-based access
Overview of petitions and recent activities
Intuitive form for petition submission
Enquiry officer's workspace with assigned petitions
Detailed feedback submission interface
High-level overview and decision management
Track petitions under investigation
Comprehensive data visualization
Admin interface for user management
# 1. Clone it
git clone https://github.com/jonathanrao99/Hydraa-PMS.git
cd Hydraa-PMS
# 2. Install dependencies
npm install
# 3. Start development server
npm run devThat's it! ๐
For testing, use these accounts:
- Reception:
reception@hydraa.gov.in(any password) - Enquiry Officer:
officer@hydraa.gov.in(any password) - Commissioner:
commissioner@hydraa.gov.in(any password) - Admin:
admin@hydraa.gov.in(any password)
- Create new petitions
- View all petitions
- Manage petition status
- Dashboard with statistics
- View assigned petitions
- Submit investigation reports
- Upload evidence and findings
- Track investigation progress
- Assign petitions to officers
- Review investigation reports
- Make final decisions
- Access analytics dashboard
- Manage user accounts
- System configuration
- View all petitions
- Access system analytics
Hydraa-PMS/
โโโ ๐ src/
โ โโโ ๐ components/ # Reusable UI components
โ โ โโโ ๐ auth/ # Authentication components
โ โ โโโ ๐ common/ # Shared components
โ โ โโโ ๐ layout/ # Layout components
โ โ โโโ ๐ petition/ # Petition-specific components
โ โ โโโ ๐ ui/ # Base UI components (shadcn/ui)
โ โโโ ๐ contexts/ # React contexts
โ โโโ ๐ hooks/ # Custom React hooks
โ โโโ ๐ lib/ # Utilities and constants
โ โโโ ๐ pages/ # Page components
โ โ โโโ ๐ admin/ # Admin pages
โ โ โโโ ๐ commissioner/ # Commissioner pages
โ โ โโโ ๐ dashboard/ # Dashboard pages
โ โ โโโ ๐ officer/ # Officer pages
โ โ โโโ ๐ reception/ # Reception pages
โ โโโ ๐ services/ # API services
โ โโโ ๐ types/ # TypeScript type definitions
โโโ ๐ public/ # Static assets
โโโ โ๏ธ package.json # Dependencies and scripts
โโโ ๐จ tailwind.config.ts # Tailwind configuration
โโโ โก vite.config.ts # Vite configuration
โโโ ๐ README.md # This file
# Development
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
# Code Quality
npm run lint # Run ESLint
npm run lint:fix # Fix ESLint issues
npm run type-check # TypeScript type checking
npm run format # Format code with Prettier
npm run format:check # Check code formatting- Frontend: React 18 + TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS + shadcn/ui
- Routing: React Router DOM
- Forms: React Hook Form + Zod
- State Management: React Context + TanStack Query
- Charts: Recharts
- Icons: Lucide React
Problem: ModuleNotFoundError: No module named 'react'
Solution: npm install
Problem: Build fails with TypeScript errors
Solution: npm run type-check to identify issues
Problem: Styling not working Solution: Ensure Tailwind CSS is properly configured
Problem: Login not working Solution: Check browser console for errors, ensure all dependencies are installed
- Fork it ๐ด
- Create a branch ๐ฟ
- Make changes โ๏ธ
- Submit PR ๐
Ideas welcome! ๐ก
For demonstration purposes! This is a prototype application showcasing modern web development practices. In production, implement proper security measures, database integration, and API endpoints.