This project is a full-stack lottery application built with React and the Ethereum blockchain. The application allows users to participate in a lottery by purchasing tickets with Ether. The lottery contract is deployed on the Ethereum network and uses smart contracts to manage the lottery.
- React: A popular JavaScript library for building user interfaces.
- Ethereum: A decentralized blockchain platform for building decentralized applications.
- Ganache-cli: A command-line tool for creating a local blockchain network for testing purposes.
- Truffle: A development framework for building Ethereum-based applications.
- Mocha test framework: A JavaScript testing framework for Node.js applications.
- Node.js: A JavaScript runtime for building server-side applications.
- MetaMask: A browser extension that allows users to interact with Ethereum-based applications.
- Wallets: A digital wallet for storing and managing cryptocurrencies.
- Providers: A tool for connecting to the Ethereum network and interacting with smart contracts.
- Node.js: You can download Node.js from the official website: https://nodejs.org/en/
- Ganache-cli: You can install Ganache-cli by running the following command:
npm install -g ganache-cli
- Truffle: You can install Truffle by running the following command:
npm install -g truffle
- Clone the repository:
git clone https://github.com/sounxk/Decentralized-Lottery.git
- Change into the project directory:
cd Decentralized-Lottery
- Install the dependencies:
npm install
- Start Ganache-cli:
ganache-cli
- Compile and deploy the smart contracts:
truffle migrate --reset
- Start the application:
npm start
Feel free to contribute