- ๐ About the Project
- ๐ป Getting Started
- ๐ค Author
- ๐ญ Future Features
- ๐ค Contributing
- โญ๏ธ Show your support
- ๐ Acknowledgements
- โ FAQ
- ๐ License
Decentralized Lottery that makes it possible to run lotteries with Chainlink VRF that feeds random variable inside the Smart Contracts to provide fair chance to win for everyone.
Language
- Enter to Raffle
- Invest 0.01 ETH for each account(player)
- Able to see Raffle Metrics
To get a local copy up and running follow these simple example steps.
In order to run this project you need:
- Install npm on your computer
Clone this repository by using the command line :
git clone https://github.com/mkaya13/alchemy-final-project-lottery.git
Go inside the hardhat directory
-
cd Crypto-Market-Smart-Contract-Lottery
-
npm install
Create a .env and fill following metrics:
PRIVATE_KEY=<> RINKEBY_RPC_URL =<> GOERLI_RPC_URL =<> SEPOLIA_RPC_URL =<> ETHERSCAN_API_KEY=<> COINMARKETCAP_API_KEY=<> UPDATE_FRONT_END = <>
npx hardhat deploy --network sepolia --tags Raffle
Go inside the front-end directory running the app:
cd nextjs-smart-contract-lottery
Install this project with:
npm install
To run the project, execute the following command:
npm start
NB: You need to create an .env.local
file for your database credentials
your env file should contain the following
NEXT_PUBLIC_SEPOLIA_ALCHEMY_API_KEY=<>
NEXT_PUBLIC_SEPOLIA_LOTTERY_CONTRACT_ADDRESS=<>
NEXT_PUBLIC_MORALIS_API_KEY=<>
๐ค Mert Kaya
- Add more Token Options
- Add other Chainlink Services such as Chainlink Functions
- Show Statistics of the Players
- Add a dedicated front-end
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project by staring it.
I would like to thank Microverse for the project.
This project is MIT licensed.