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.
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