/pet-shop

Truffle pet shop tutorial

Primary LanguageJavaScript

pet-shop-tutorial

Truffle pet-shop tutorial with minor changes to the code.

Prerequsites

  • Node.js (and NPM) https://nodejs.org
  • Truffle $ npm install -g truffle
  • Testrpc (or any ethereum client) $ npm install -g ethereumjs-testrpc

Setup

  • Run private ethereum network in a console $ testrpc
  • Open another console, clone this repo, enter and install node.js dependencies $ npm install
  • Compile smart contracts $ truffle compile
  • Migrate (deploy) smart contracts to our private network $ truffle migrate
  • Test the contracts $ truffle test
  • Run app $ npm run dev and open in browser http://localhost:3000