The AI-Enabled Police Feedback System is a full-stack web application designed to collect and analyze citizen feedback. It uses Google NLP & Translation APIs to process feedback in multiple languages and provides real-time sentiment analysis. The system features a secure admin dashboard for police officers to monitor public sentiment and enhance service evaluation.
- React.js (for UI)
- Tailwind CSS (for styling)
- Recharts (for data visualization)
- Node.js + Express.js (for API)
- MongoDB + Mongoose (for database)
- Google NLP API (for sentiment analysis)
- Google Translation API (for multilingual support)
- Submit feedback in any language (automatically translated to English)
- Real-time sentiment analysis (Positive, Neutral, Negative)
- Secure submission with Aadhar Number validation
- View and manage feedback entries
- Sentiment-based filtering for better insights
- Data visualization using graphs and charts
- Admin login system (with username & password)
- Role-based access control (only authorized police officers)
- Secure API endpoints using JWT authentication
- Clone the repository:
git clone https://github.com/bhanushakya2004/Police_Feedback_Project.git cd Police_Feedback_Project/backend
- Install dependencies:
npm install
- Configure environment variables (
.env
file):MONGO_URI=your_mongodb_connection_string GOOGLE_API_KEY=your_google_api_key
- Start the backend server:
npm start
- Navigate to the frontend directory:
cd ../frontend
- Install dependencies:
npm install
- Start the React frontend:
npm start
POST /api/feedback
- Submit feedbackGET /api/feedback
- Retrieve feedback dataGET /api/feedback/:id
- Get specific feedback
POST /api/admin/login
- Admin loginGET /api/admin/dashboard
- View feedback insights
- AI-based trend analysis for predictive insights
- Mobile app version for citizen convenience
- Voice-based feedback submission
Project By: Bhanu Shakya 🚀