Git Product home page Git Product logo

descratchoff-card's Introduction

DeScratchOff Card

A digital scratch card Dapp where users can win prizes by matching 3 images

Technologies

  • React
  • Bootstrap 4
  • Node.js
  • Hardhat
  • Ether.js
  • nft.storage (Store images for the digital scratch card on IPFS)
  • Covalent API (Get NFT token IDs for contract using Covalent API)
  • NFTPort API (Mint the NFT of the digital scratch card on Polygon for free using Easy Mint API)
  • Chainlink VRF (Determine if the user won something from digital scratch card )
  • Lighthouse (Store digital scratch card's cover on IPFS forever)
  • Gasless SDK (Gasless transactions for redeeming digital scratch card)
  • Unstoppable Domains Login

Running the dapp on local host

  • Clone or download this repository
  • Run npm i to install the dependencies
  • Create a file called '.env' on the root folder and add the following code
ALCHEMYAPI_KEY = <KEY>
PRIVATEKEY = <KEY>
COVALENT_APIKEY = <KEY>
DESCRATCHOFF_ADDRESS = <KEY>
  • Run npx hardhat run scripts/sample-script.js --network mumbai to deploy contract

  • Create a file called 'config.js' on the src folder and add the following code

export const NFT_STRORAGE_APIKEY = <KEY>;
export const NFTPORT_APIKEY = <KEY>;
export const DESCRATCHOFF_ADDRESS = <KEY>;
export const BICONOMY_APIKEY = <KEY>;
export const UNSTOPPABLEDOMAINS_CLIENTID = "< Your Unstoppable Domains Client Id >";
export const UNSTOPPABLEDOMAINS_REDIRECT_URI = "< Your Unstoppable Domains Redirect URL >";
  • Run npm start to start the dapp

descratchoff-card's People

Contributors

ysongh avatar

Watchers

 avatar

Forkers

billyjitsu

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.