/ethnyc-2022

Primary LanguageCSSMIT LicenseMIT

๐Ÿ‘ฉโ€๐Ÿซ๐Ÿ‘จโ€๐Ÿซ Staking Course Design App

This project was created for the ETH NYC Hacakthon organized by ETH Global

The app will allow users to create courses with built-in crypto incentives!

Here's what a course created with the Staking Course Design app looks like:

  1. Students stake funds to get access to the course
  2. Students can get a share of their funds back as they complete steps of the course
  3. Students are issued NFTs that show they've completed a step of the course.

๐Ÿงช A course creator you can use the contracts that are created with these built-in mechanisms!

๐Ÿ„โ€โ™‚๏ธ Quick Start

  1. Prerequisites: Node (v16 LTS) plus Yarn and Git

  2. Clone/fork ๐Ÿ— this repo

git clone https://github.com/carletex/ethnyc-2022.git
  1. Install and start your ๐Ÿ‘ทโ€ Hardhat chain:
cd ethnyc-2022
yarn install
yarn chain
  1. In a second terminal window, start your ๐Ÿ“ฑ frontend:
cd ethnyc-2022
yarn start
  1. In a third terminal window, ๐Ÿ›ฐ deploy your contract:
cd ethnyc-2022
yarn deploy
  1. ๐Ÿ“ฑ Open http://localhost:3000 to see the app

  2. Create a new course on the Course Adim Page.

  3. Once the contract(a) are deployed for a new course. Get the address of the staking course and add it to SignUpPage.jsx: The staking contract address (line 14). You will also need to add the address of the NFT Badge contract to MyBadges.jsx: The badges contract address (line 9).

  4. Now students can go to the student view, signup and get started!


๐Ÿ“š Documentation

Documentation, tutorials, challenges, and many more resources, visit: docs.scaffoldeth.io

๐Ÿฆ Other Flavors

๐Ÿ›  Buidl

Check out all the active branches, open issues, and join/fund the ๐Ÿฐ BuidlGuidl!

๐Ÿ’Œ P.S.

๐ŸŒ You need an RPC key for testnets and production deployments, create an Alchemy account and replace the value of ALCHEMY_KEY = xxx in packages/react-app/src/constants.js with your new key.

๐Ÿ“ฃ Make sure you update the InfuraID before you go to production. Huge thanks to Infura for our special account that fields 7m req/day!

๐Ÿƒ๐Ÿ’จ Speedrun Ethereum

Register as a builder here and start on some of the challenges and build a portfolio.

๐Ÿ’ฌ Support Chat

Join the telegram support chat ๐Ÿ’ฌ to ask questions and find others building with ๐Ÿ— scaffold-eth!


Automated with Gitpod

Open in Gitpod