Truffle Pet Shop Tutorial
This repo contains a working example (11/20/2021) of the "Pet Shop" tutorial for Truffle Suite.
Follow along with the linked instructions or use the TL;DR below.
npm i -g truffle
- clone this repo or start from scratch:
mkdir pet-shop-tutorial && cd pet-shop-tutorial
truffle unbox pet-shop
- Install ganache-cli
npm i -g ganache-cli
- Start Ganache (local blockchain instance)
ganache-cli -p 7545 --clientId 1337
- Copy the "seed phrase" generated by Ganache to a scratchpad
- (it should output in the terminal)
- Install MetaMask
- Import the seed phrase
- Select "Localhost: 7545" as your network from the dropdown
truffle migrate
npm run dev