diff --git a/README.md b/README.md index 63ec37c68..2ffdd1a17 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Agentic Ethereum Hackathon India -# ๐Ÿ›  Project Title - [Team Name] +# ๐Ÿ›  CivicChain - [Team Goose] Welcome to our submission for the *Agentic Ethereum Hackathon* by Reskilll & Geodework! This repository includes our project code, documentation, and related assets. @@ -8,47 +8,190 @@ Welcome to our submission for the *Agentic Ethereum Hackathon* by Reskilll & Geo ## ๐Ÿ“Œ Problem Statement -We addressed the challenge: *โ€œ[Problem Statement Title]โ€* -Brief description of the challenge and why it matters. +We addressed the challenge: *"Building Transparent and Accountable Governance Systems"* + +Traditional grievance management systems lack transparency, accountability, and often suffer from spam complaints and inefficient tracking. Citizens struggle to hold government accountable for addressing their concerns, while administrators lack comprehensive analytics to prioritize and manage grievances effectively. --- ## ๐Ÿ’ก Our Solution -*Project Name:* [Your Project Name] -A short pitch of your solution โ€” what you built, who itโ€™s for, and why itโ€™s impactful. +*Project Name:* **CivicChain - Transparent Civic Governance Platform** + +CivicChain is a modern React-based civic governance platform that leverages Zero-Knowledge Proof (ZKP) technology for mandatory Aadhaar verification. Our solution ensures transparent grievance management while preserving user privacy, prevents spam through ZKP authentication, and provides comprehensive analytics for both citizens and administrators to track government accountability in real-time. + +**Key Features:** +- ๐Ÿ” Privacy-preserving Aadhaar ZKP verification +- ๐Ÿ“Š National public leaderboard for state-wise performance +- ๐ŸŽฏ AI-powered grievance categorization and insights +- ๐Ÿ“ˆ Real-time analytics and comprehensive dashboards +- ๐Ÿ›๏ธ Transparent government accountability tracking --- ## ๐Ÿงฑ Tech Stack -- ๐Ÿ–ฅ Frontend: [React / Next.js / etc.] -- โš™ Backend: [Node.js / Python / etc.] -- ๐Ÿง  AI: [Llama 3 / LangChain / OpenAI / etc.] -- ๐Ÿ”— Blockchain: [Ethereum / Solidity / Foundry / etc.] -- ๐Ÿ” DB/Storage: [IPFS / PostgreSQL / Firebase / etc.] -- ๐Ÿš€ Hosting: [Vercel / Netlify / Render / etc.] +- ๐Ÿ–ฅ **Frontend**: React 18, Vite, TailwindCSS, Framer Motion +- โš™ **Backend**: Node.js, Express.js, Vercel Serverless Functions +- ๐Ÿง  **AI**: OpenAI GPT-4, LangChain for grievance analysis and insights +- ๐Ÿ”— **Blockchain/ZKP**: Anon Aadhaar ZKP (@anon-aadhaar/core, @anon-aadhaar/react) +- ๐Ÿ” **Database**: MongoDB Atlas (cloud-hosted) +- ๐Ÿ“Š **Data Visualization**: D3.js, Recharts +- ๐Ÿ” **Authentication**: JWT, bcrypt, Zero-Knowledge Proofs +- ๐Ÿš€ **Hosting**: Vercel (Frontend + Serverless Backend) --- ## ๐Ÿ“ฝ Demo -- ๐ŸŽฅ *Video Link*: [YouTube/Drive Link] -- ๐Ÿ–ฅ *Live App (if available)*: [URL] +- ๐ŸŽฅ *Video Demo*: [Youtube Demo](https://youtu.be/4Jf9XRX68v4) +- Backup Video Drive Link: [drive link](https://drive.google.com/file/d/1Kbo_LoFcXu3jxNypUExTNKVL7yJTTqLu/view?usp=sharing) +- Github Repo: https://github.com/BishalJena/civic-chain --- ## ๐Ÿ“‚ Repository Structure ```bash . -โ”œโ”€โ”€ frontend/ # Frontend code -โ”œโ”€โ”€ backend/ # Backend code -โ”œโ”€โ”€ contracts/ # Smart contracts -โ”œโ”€โ”€ assets/ # PPT, video links, images -โ”œโ”€โ”€ docs/ # Architecture diagram, notes -โ”œโ”€โ”€ README.md # A detailed description of your project -โ”œโ”€โ”€ .env.example -โ”œโ”€โ”€ package.json / requirements.txt -โ”œโ”€โ”€ yourppt.ppt +โ”œโ”€โ”€ api/ # Vercel serverless functions +โ”‚ โ””โ”€โ”€ index.js # Main API endpoint +โ”œโ”€โ”€ backend/ # Local development server +โ”‚ โ”œโ”€โ”€ server.js # Express server +โ”‚ โ””โ”€โ”€ package.json # Backend dependencies +โ”œโ”€โ”€ src/ # React frontend source +โ”‚ โ”œโ”€โ”€ components/ # Reusable UI components +โ”‚ โ”‚ โ”œโ”€โ”€ auth/ # Authentication components +โ”‚ โ”‚ โ””โ”€โ”€ ui/ # Base UI components +โ”‚ โ”œโ”€โ”€ pages/ # Application pages +โ”‚ โ”‚ โ”œโ”€โ”€ admin-authentication-portal/ +โ”‚ โ”‚ โ”œโ”€โ”€ citizen-dashboard-grievance-filing/ +โ”‚ โ”‚ โ”œโ”€โ”€ comprehensive-admin-dashboard/ +โ”‚ โ”‚ โ”œโ”€โ”€ national-public-leaderboard/ +โ”‚ โ”‚ โ””โ”€โ”€ state-specific-performance-dashboard/ +โ”‚ โ”œโ”€โ”€ contexts/ # React context providers +โ”‚ โ”œโ”€โ”€ utils/ # Utility functions & AI services +โ”‚ โ””โ”€โ”€ styles/ # Global styles +โ”œโ”€โ”€ scripts/ # Database setup and population +โ”œโ”€โ”€ public/ # Static assets +โ”œโ”€โ”€ build/ # Production build output +โ”œโ”€โ”€ .env # Environment variables +โ”œโ”€โ”€ vercel.json # Vercel deployment config +โ”œโ”€โ”€ package.json # Frontend dependencies +โ”œโ”€โ”€ tailwind.config.js # TailwindCSS configuration +โ”œโ”€โ”€ vite.config.mjs # Vite build configuration +โ””โ”€โ”€ README.md # Project documentation +``` + +--- + +## ๐Ÿš€ Quick Start + +### Prerequisites +- Node.js 18+ and npm +- MongoDB Atlas account +- OpenAI API key +- Vercel account (for deployment) + +### Local Development + +1. **Clone the repository** +```bash +git clone https://github.com/BishalJena/civic-chain.git +cd civic-chain +``` + +2. **Install dependencies** +```bash +npm install +``` + +3. **Setup environment variables** +```bash +cp .env.example .env +# Edit .env with your MongoDB URI, OpenAI API key, and JWT secret +``` + +4. **Start development server** +```bash +npm run dev +``` + +5. **Access the application** +- Frontend: http://localhost:4028 +- API: http://localhost:3001 (if running backend separately) + +### Production Deployment + +Deploy to Vercel with one command: +```bash +vercel --prod +``` + +--- + +## ๐Ÿ” Security & Privacy Features + +- **Zero-Knowledge Proof Authentication**: Mandatory Aadhaar verification without exposing personal data +- **JWT-based Security**: Secure session management +- **Input Validation**: Comprehensive form validation and sanitization +- **CORS Protection**: Configured for secure cross-origin requests +- **Environment Security**: Sensitive data stored in environment variables + +--- + +## ๐Ÿ—๏ธ Architecture + +CivicChain follows a modern serverless architecture: + +1. **Frontend**: React SPA hosted on Vercel with static generation +2. **Backend**: Node.js serverless functions on Vercel +3. **Database**: MongoDB Atlas for scalable data storage +4. **Authentication**: Hybrid approach with ZKP + JWT +5. **AI Integration**: OpenAI API for intelligent grievance analysis + +--- + +## ๐ŸŽฏ Key Innovations + +1. **Privacy-First Approach**: ZKP ensures citizens can file grievances without compromising personal data +2. **AI-Powered Insights**: Automated categorization and priority assignment for grievances +3. **Transparent Accountability**: Public leaderboards create pressure for government responsiveness +4. **Real-time Analytics**: Live dashboards for both citizens and administrators +5. **Spam Prevention**: ZKP verification eliminates fake/spam complaints + +--- + +## ๐Ÿ”ฎ Future Roadmap + +- [ ] Multi-language support +- [ ] Smart contracts for automated government response tracking +- [ ] Mobile app development (React Native) +- [ ] Integration with government APIs + +--- + +## ๐Ÿ‘ฅ Team + +**Team CodeCrafters** +- **Bishal Jena** - Full Stack Developer & Project Lead +- [Add other team members] + +--- + +## ๐Ÿ“„ License + +This project is developed for the Agentic Ethereum Hackathon India. + +--- + +## ๐Ÿ™ Acknowledgments + +- Reskilll & Geodework for organizing the hackathon +- Anon Aadhaar team for ZKP infrastructure +- OpenAI for AI capabilities +- Vercel for hosting and serverless infrastructure + +--- +*Built with โค๏ธ for transparent governance and citizen empowerment*