Westside Blockchain slides: https://docs.google.com/presentation/d/1IhtHU9m94zeoiMBvVjFeoPcxc8VbbE-2U6rdACGHSrk/edit?usp=sharing
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
This box has all you need to get started with our Pet Shop tutorial.
Install Truffle globally.
npm install -g truffle
CD into your cloned directory. Run npm install
Run the development console.
truffle develop
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-
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
Install MetaMask - https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en
In metamask, top left corner, Connect to your local blockchain server - http://127.0.0.1:9545/
Get one of generated private keys from truffle develop. Use import account on metamasm and add the private key from the truffle develop console.
Try adopting a pet.
How do I use this with the EthereumJS TestRPC?
It's as easy as modifying the config file! Check out our documentation on adding network configurations. Depending on the port you're using, you'll also need to update line 16 of src/js/app.js
.