- Run
npm install
in app folder and root directory - Download Ganache and add truffle-config.js to it. Specifically, open Ganache -> new workspace -> Pick any name and click on add project -> link the file truffle-config.js -> save workspace on top right corner.
- Install Truffle globally
Run in root directoy:
Truffle compile
Truffle migrate
Run in app folder:
npm run start
- Go to Settings -> Network -> Add network
- Name it Ganache, copy the RPC Server URL from the Ganache workspace
- Fill in a random chain ID
- Click on save, put in suggested chain ID, save again.
- Open Ganache, copy the private key of the first account (on the right-> show key).
- Open Metamask, my account -> Import account -> paste private key -> import.
- Now connect this account with around 99 ETH to the website.
\ \ / \ / / | ____|| _ \ |___ \
\ \/ \/ / | |__ | |_) | __) |
\ / | __| | _ < |__ <
\ /\ / | |____ | |_) | ___) |
\__/ \__/ |_______||______/ |____/