This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.
AI-Powered Transparency & Service Platform for City Hackathon 2025
# Create project
npm create vite@latest citypulse-connect -- --template react
cd citypulse-connect
# Install dependencies
npm install
npm install lucide-react recharts
npm install -D tailwindcss postcss autoprefixer
# Initialize Tailwind
npx tailwindcss init -p- Copy all configuration files (tailwind.config.js, postcss.config.js)
- Copy all source files to their respective directories
- Replace the default files with provided code
npm run devVisit http://localhost:5173
npm run buildcitypulse-connect/
βββ src/
β βββ components/
β β βββ Header.jsx
β β βββ ResidentView.jsx
β β βββ StaffView.jsx
β β βββ ChatBot.jsx
β β βββ RequestModal.jsx
β βββ utils/
β β βββ mockData.js
β β βββ aiEngine.js
β βββ App.jsx
β βββ main.jsx
β βββ index.css
βββ public/
βββ index.html
βββ package.json
βββ tailwind.config.js
βββ postcss.config.js
βββ vite.config.js
- π Real-time service request tracking
- πΊοΈ Interactive geospatial map
- π€ AI-powered chatbot assistant
- π Multilingual support (English/Spanish)
- π Advanced filtering
- π± Mobile-responsive design
- π Comprehensive analytics dashboard
- π― AI-detected bottleneck analysis
- π Department performance metrics
- πΊοΈ Neighborhood hotspot identification
- π Trend analysis and forecasting
- π‘ Actionable recommendations
- Predictive Resolution Times: Machine learning estimates based on request type, priority, and location
- Natural Language Updates: Auto-generated status messages in multiple languages
- Conversational Chatbot: Context-aware responses to resident queries
- Bottleneck Detection: Automated identification of service delivery issues
- Smart Recommendations: Data-driven suggestions for resource allocation
- Frontend: React 18 + Vite
- Styling: Tailwind CSS
- Charts: Recharts
- Icons: Lucide React
- State Management: React Hooks
Mock Data Generator
β
Service Requests (45 samples)
β
AI Processing Layer
βββ Resolution Time Prediction
βββ Status Update Generation
βββ Chatbot Response Engine
βββ Bottleneck Detection
β
Visualization Layer
βββ Resident Dashboard
βββ Staff Analytics
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel# Build
npm run build
# Deploy dist/ folder to Netlify# Add to package.json
"homepage": "https://yourusername.github.io/citypulse-connect"
# Install gh-pages
npm install --save-dev gh-pages
# Add deploy scripts
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
# Deploy
npm run deploy- Show current lack of transparency
- Highlight resident frustration
- Switch language to Spanish
- Use chatbot to check request status
- Show map with live locations
- Click request for AI-generated update
- Toggle to staff view
- Show analytics dashboard
- Point to bottleneck detection
- Highlight predictive insights
- Reduces inquiry calls by 60%
- Improves resolution tracking by 85%
- Data-driven resource allocation
- Multilingual accessibility
- 45 Mock service requests
- 7 Request types
- 4 City departments
- 5 Neighborhoods
- 4 Status levels
- 2 Languages supported
Edit src/utils/mockData.js:
const types = ['Pothole', 'Street Light', 'YourNewType'];Edit tailwind.config.js:
theme: {
extend: {
colors: {
primary: '#your-color'
}
}
}Edit src/utils/aiEngine.js:
const updates = {
en: { ... },
es: { ... },
fr: { ... } // Add new language
};# Clear cache
rm -rf node_modules
rm package-lock.json
npm install# Change port
npm run dev -- --port 3000# Rebuild Tailwind
npx tailwindcss -i ./src/index.css -o ./dist/output.css --watchMIT License - Built for City Hackathon 2025
Add your team information here
- City Hackathon 2025 Organizers
- Open-source community
- AI/ML libraries
Built with β€οΈ for better city services