Skip to content

nickjuntilla/truffle-petshop-tutorial-complete

Repository files navigation

Westside Blockchain slides: https://docs.google.com/presentation/d/1IhtHU9m94zeoiMBvVjFeoPcxc8VbbE-2U6rdACGHSrk/edit?usp=sharing

truffle-petshop-tutorial-complete

Finished Petshop Tutorial modified Readme File below Just running all the commands should now bring up the completed project. You will still have to configure your metamask to connect to your truffle develop blockchain

Pet Shop Truffle Box

This box has all you need to get started with our Pet Shop tutorial.

Installation

  1. Install Truffle globally.

    npm install -g truffle
  2. CD into your cloned directory. Run npm install

  3. Run the development console.

    truffle develop
  4. Compile and migrate the smart contracts. Note inside the development console we don't preface commands with truffle.

    compile
    migrate

IN A NEW COMMAND LINE-

  1. Run the liteserver development server (outside the development console) for front-end hot reloading. Smart contract changes must be manually recompiled and migrated.

    // Serves the front-end on http://localhost:3000
    npm run dev
  2. Install MetaMask - https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en

  3. In metamask, top left corner, Connect to your local blockchain server - http://127.0.0.1:9545/

  4. Get one of generated private keys from truffle develop. Use import account on metamasm and add the private key from the truffle develop console.

  5. Try adopting a pet.

FAQ

About

Finished Petshop Tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published