l00sed / pet-shop-tutorial

Testing out Truffle suite and Solidity development tutorials.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

  1. npm i -g truffle
  2. clone this repo or start from scratch:
  • mkdir pet-shop-tutorial && cd pet-shop-tutorial
  • truffle unbox pet-shop
  1. Install ganache-cli
  • npm i -g ganache-cli
  1. 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)
  1. Install MetaMask
  • Import the seed phrase
  • Select "Localhost: 7545" as your network from the dropdown
  1. truffle migrate
  2. npm run dev

About

Testing out Truffle suite and Solidity development tutorials.

License:MIT License


Languages

Language:JavaScript 98.3%Language:HTML 0.9%Language:Solidity 0.8%