Git Product home page Git Product logo

alchemy-final-project-lottery's Introduction

๐Ÿ“— Table of Contents

๐Ÿ“– Decentralized Lottery

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.

๐Ÿ›  Built With

Tech Stack

Language

Key Features

  • Enter to Raffle
  • Invest 0.01 ETH for each account(player)
  • Able to see Raffle Metrics

(back to top)

๐Ÿ’ป Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

In order to run this project you need:

  • Install npm on your computer

Setup

Clone this repository by using the command line :

  • git clone https://github.com/mkaya13/alchemy-final-project-lottery.git

Back-End

Go inside the hardhat directory

  • cd Crypto-Market-Smart-Contract-Lottery

  • npm install

Env Variable

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 = <>

Deploy the Smart Contract, You will need it to run the Front-End

npx hardhat deploy --network sepolia --tags Raffle

Front-End

Go inside the front-end directory running the app:

cd nextjs-smart-contract-lottery

Install this project with:

npm install

Usage

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=<>

(back to top)

๐Ÿ‘ค Author

๐Ÿ‘ค Mert Kaya

(back to top)

๐Ÿ”ญ Future Features

  • Add more Token Options
  • Add other Chainlink Services such as Chainlink Functions
  • Show Statistics of the Players
  • Add a dedicated front-end

(back to top)

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

โญ๏ธ Show your support

If you like this project by staring it.

(back to top)

๐Ÿ™ Acknowledgments

I would like to thank Microverse for the project.

(back to top)

๐Ÿ“ License

This project is MIT licensed.

(back to top)

alchemy-final-project-lottery's People

Contributors

mkaya13 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.