Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 978 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 978 Bytes

MetaGotchi Play to Earn Metaverse Game

This project demonstrates a basic implementation of developpement stack to build decentralized Metaverse Play To Earn (P2E) Game. This workspace comes with a solidity smartcontract and a Angular frontend dApp that integrate Three.js to render the game in the 3D Metaverse environment and interact with the smartcontract.

Developement

Browser

  • You have to get MetaMask extension installed to provide web3 provider

Blockchain

  • Start ethereum node using npx hardhat node
  • Open Ethereum Remix Plugin for Visual Studio Code
  • Compile and deploy ./meta-gotchi/contracts/meta-gotchi.sol contract using Ethereum Remix Plugin interface
  • Connect MetaMask to the local Hardhat node
  • Import demo Ethereum Wallets address to MetaMask

dApp

  • Install project dependencies using NodeJS and NPM with npm install
  • Run project in browser using npm run start
  • Open browser localhost:4200 to see the dApp