4. For Local Development
• Node.js (system program)
• Solc (npm package)
• Truffle (npm package)
• Testrpc (npm Package)
5. Installing Node
Mac
1. Install Homebrew
(https://brew.sh)
2. Open command line
1. brew install node
2. node -v
Windows
• Go to https://nodejs.org/en/
• Open command line
• node -v
6. Install Global NPM Packages
1. In command line
1. npm install solc –g
2. npm install truffle –g
3. npm install ethereumjs-testrpc -g
7. Creating Project with Truffle
• In the command line
• cd ~ && mkdir code && cd code
• truffle init
• ls -la
• Open a new terminal tab or window
• testrpc
8.
9. Let’s See it Working!!
• Command line
• truffle compile
• truffle migrate –reset
• truffle test
10. Minor Change to Tests
• Go to link
• Short http://bit.ly/2o6lM5L
• Raw https://gist.github.com/sogoiii/d3b512aab0623d4ad1da5c5bde3d3323
• Copy and paste over the `./test/metacoin.js` file
• Run `truffle test` in command line
11. Contact Us @ www.hellosugoi.com
• Angello Pozo
• angello@hellosugoi.com
• https://medium.com/@angellopozo
• Jason Robert
• jason@hellosugoi.com
• https://medium.com/@jason.robert
Follow us on Twitter: @hellosugoi
Notes de l'éditeur
Windows installer - http://blog.teamtreehouse.com/install-node-js-npm-windows