A next-generation voting system powered by blockchain technology
VotersChain revolutionizes traditional voting systems by combining blockchain security with user-friendly interfaces. Our platform ensures transparent, tamper-proof elections while maintaining voter privacy and system integrity.
|
|
|
|
β
Node.js
β
MongoDB
β
MetaMask
β
Git# Terminal 1: Fire up the local blockchain
cd client
npx hardhat node
# Terminal 2: Deploy your contracts
cd client
npx hardhat compile
npx hardhat run scripts/deploy.js --network localhostCreate .env in client directory:
VITE_CONTRACT_ADDRESS=<your_deployed_contract_address># Terminal 3: Set up your server
cd server
npm installCreate .env in server directory:
PORT=<port_number>
MONGO_URI=<mongodb_connection_string>
JWT_SECRET=<your_jwt_secret>
ADMIN_EMAIL=<admin_email>
ADMIN_PASSWORD=<admin_password>
EMAIL_ID=<your_gmail_address>
EMAIL_PASS=<google_app_password>Launch the server:
nodemon server.js# Terminal 4: Fire up the frontend
cd client
npm install
npm run dev- π₯ Install MetaMask extension
- π Launch MetaMask
- β‘ Select "Import Account"
- π Enter your private key
- π Connect to local network
Our system is built on a robust database schema with the following core components:
|
|
|
- JWT session management
- Role-based access
- Secure credential handling
- NoSQL injection guards
- CORS security
- XSS prevention
- Input sanitization
- Smart contract verification
- Transaction validation
- Immutable records
- Fingerprinting
- Browser monitoring
- OS tracking
graph LR
A[Fork] -->B[Feature Branch]
B --> C[Commit Changes]
C --> D[Push]
D --> E[Pull Request]
- π΄ Fork the repository
- πΏ Create feature branch (
git checkout -b feature/amazing-feature) - πΎ Commit changes (
git commit -m 'Add amazing feature') β€΄οΈ Push to branch (git push origin feature/amazing-feature)- π― Open Pull Request
Made with β€οΈ by ChainSecure Solutions