Skip to content

Devbearking/Voting-Dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

IMPORTANT!

This Voting Dapp is a decentralized application designed to facilitate secure and transparent voting processes. Created for a specific job application, it is intended solely for demonstration purposes and is not for sale or commercial use. The Dapp showcases the candidate's skills in blockchain technology, smart contract development, and user interface design.

Disclaimer:

This Voting Dapp is a non-commercial, educational project created specifically for a job application at LimeChain. It is not intended for public deployment, commercial use, or any real-world voting scenarios. The code and application are provided "as-is" without any warranties or guarantees of functionality or security.

Voting DApp

Overview

This repository contains the code for a decentralized voting application (DApp) built using TypeScript for the front end and Solidity for the back end. The project leverages ethers.js for blockchain interactions and Hardhat for development and testing of smart contracts. The main purpose of this DApp is to allow users to create and participate in voting sessions on the Ethereum blockchain.

Features

  • Participate in existing voting sessions
  • Real-time vote counting and results
  • Secure and transparent voting process using blockchain technology

Technologies Used

Front End

  • TypeScript:
  • React:
  • Ethers.js:
  • Wagmi:

Back End

  • Solidity:
  • Hardhat:

Prerequisites

To run this project locally, you need to have the following installed:

  • Node.js
  • npm or yarn
  • Git
  • Metamask or any other Ethereum wallet browser extension

Getting Started

Clone the Repository

git clone https://github.com/yourusername/voting-dapp.git

Install Dependencies

Navigate to both the Front-End and Back-End directories and install the necessary dependencies.

For the Front End:

cd Front-End
npm install

For the Back End:

cd Back-End
npm install

Run the Front End

Navigate to the Front-End directory and start the development server.

cd Front-End
npm start

Open your browser and navigate to http://localhost:3000 to view the application.

Project Structure

voting-dapp/
├── Back-End/
│   ├── contracts/          # Solidity smart contracts
│   ├── scripts/            # Deployment and migration scripts
│   ├── test/               # Test scripts for smart contracts
│   ├── hardhat.config.js   # Hardhat configuration file
│   └── package.json        # Node.js dependencies and scripts for back end
├── Front-End/
│   ├── src/                # Source files for the front end
│   ├── public/             # Public assets
│   ├── package.json        # Node.js dependencies and scripts for front end
│   └── tsconfig.json       # TypeScript configuration file
└── README.md               # Project documentation

Usage

  1. "Only the Contract Owner" can add candidates: Navigate to the input and fill out the required details.
  2. "Only the Contract Owner" can remove candidates: Navigate to the input and fill out the required details (by index).
  3. Participate in a Voting: Find the candidate you want and cast your vote.
  4. View Results: The results will be displayed immediately.

Happy coding!

About

Voting DApp created for job application at LimeChain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published