Skip to content

hellosumitg/runner-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain game

Build a play to earn blockchain runner game that rewards tokens and NFTs

Technology Stack & Dependencies

  • Solidity (Writing Smart Contract)
  • HTML, Css, Javascript For the website
  • Infura Account on Infura as a node provider
  • NodeJS To install Dependencies
  • Hardhat Ethereum development environment
  • Ethers.js To interact with the blockchain

1. Clone/Download the Repository

2. Install Dependencies:

$ cd contract
$ npm install or
$ yarn

3. Deploy NFT collection to Goerli testnet

  • Setup your env file with both private key and goerli RPC
$ npx hardhat run scripts/deployNFTCollection.js --network goerli

4. Deploy Run token to Goerli testnet

  • Setup your env file with both private key and goerli RPC
$ npx hardhat run scripts/deployRunToken.js --network goerli

5. Provide the smart contract addresses in blockchain.js file

Images in the game are taken from https://www.flaticon.com/