Decentralized voting application with comprehensive test automation for Web3.
Stack: Solidity • Hardhat • React • TypeScript • Playwright • Synpress
npm install
cd frontend && npm install && cd ..Terminal 1: npm run node (save Account #0 private key)
Terminal 2: npm run compile && npm run deploy && cp deployment.json frontend/public/
Terminal 3: npm run frontend (opens http://localhost:3000)
- Add Network:
Hardhat Local|http://127.0.0.1:8545| Chain ID:1337 - Import Account #0 private key
- Connect at http://localhost:3000
| Command | Description |
|---|---|
npm test |
Unit tests |
npm run test:coverage |
Unit tests with coverage report |
npm run e2e |
E2E tests (requires running app) |
AI tools used (~60-70% time saved):
- Claude/ChatGPT: Test strategy
- Cursor AI: MVP implementation, React components, Code cleanup and comments




