Loading video player...
In this video, I explain my complete Decentralized Voting System, built using: Solidity + Hardhat for the on-chain voting contract Express.js + Web3.js for backend API communication Foundry tests, deployment scripts, error handling, and more The walkthrough shows how traditional server logic interacts with blockchain smart contracts in a secure and structured way. š§© What You Will Learn š¹ Smart Contract (voting_hardhat) How a voting contract works (candidates, votes, winner logic) Owner-guarded functions for administrative actions Custom errors (RestrictedToOwner(), NoCandidates(), etc.) Deployment using Hardhat scripts Unit tests in Foundry (.t.sol) Understanding calldata, storage, and gas efficiency š¹ Backend API (voting_backend) How to call smart contract methods using Web3.js Node/Express routing structure Fetching candidates, voting, and reading winner Logging & error handling best practices Environment-driven RPC provider configuration š¹ End-to-End Architecture How the backend and smart contract talk to each other Using Postman and cURL to test endpoints Practical Web3 application design š GitHub Project Links š Hardhat Smart Contract Repo š https://github.com/DHRUVCHARNE/voting_hardhat š Express/Web3 Backend Repo š https://github.com/DHRUVCHARNE/voting_backend #solidity, #smart-contracts, #hardhat, #expressjs, #web3js, #decentralizedapps #app, #dapp #tutorial, #blockchain #voting #project, #ethereum , #foundry #test, #backend, #howto ,#full-stack, #blockchaintechnology