/nextjs-smartcontract-lottery-fcc

Learning from FCC and Patrick Collins about Smart Contracts and Full Stack Web3

Primary LanguageJavaScriptMIT LicenseMIT

Web3 Nextjs to interact Smart Contract Lottery

MIT License LinkedIn

About The Project

Check the website here

All the code was developed for learning purposes and is from Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course by freeCodeCamp.org and Patrick Collins

The project represents a Web3 to interact a smart contract for a fair raffle system. People can enter the raffle by paying 0.01 ETH.

After some players have enter the raffle, if the raffle is OPEN and the has passed enough time, the smart contract automatically will pick a winner and will send the pool prize to the winner.

Once the winner is picked, the raffle resets the players list and the process starts from the begining

(back to top)

Built With

(back to top)

Getting Started

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

Installation

  1. Clone the repo
    git clone https://github.com/alvaro-8a/nextjs-smartcontract-lottery-fcc.git
  2. Install YARN packages
    yarn

(back to top)

Usage

You can use this code it as a template to develop your own Web3, there are many improvements that can be done so feel free to make any change.

Note: This project is a demo and I don't recommend using it without changes, there are many things that can be improved so take in consideration before using it.

(back to top)

Roadmap

  • [✔️] NextJS config
  • [✔️] Header Component to connect the wallet
  • [✔️] LotteryEntrance to interact with the Contract
  • [✔️] Enter the raffle
  • [✔️] Upload to decentralized hosting

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion or an improvement that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Your Name - @alvaro_8a_ - alvaroblanco8a@gmail.com

Project Link: https://github.com/alvaro-8a/nextjs-smartcontract-lottery-fcc

(back to top)

Acknowledgments

(back to top)