Setting Up a Solidity
Environment
By Angello Pozo & Jason Robert
What is Solidity?
• Compiles down to op codes that are run on Ethereum
• Use the Blockchain as a server and a DB
Image of What’s Happening
For Local Development
• Node.js (system program)
• Solc (npm package)
• Truffle (npm package)
• Testrpc (npm Package)
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
Install Global NPM Packages
1. In command line
1. npm install solc –g
2. npm install truffle –g
3. npm install ethereumjs-testrpc -g
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
Let’s See it Working!!
• Command line
• truffle compile
• truffle migrate –reset
• truffle test
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
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

Solidity intro

  • 1.
    Setting Up aSolidity Environment By Angello Pozo & Jason Robert
  • 2.
    What is Solidity? •Compiles down to op codes that are run on Ethereum • Use the Blockchain as a server and a DB
  • 3.
  • 4.
    For Local Development •Node.js (system program) • Solc (npm package) • Truffle (npm package) • Testrpc (npm Package)
  • 5.
    Installing Node Mac 1. InstallHomebrew (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 NPMPackages 1. In command line 1. npm install solc –g 2. npm install truffle –g 3. npm install ethereumjs-testrpc -g
  • 7.
    Creating Project withTruffle • In the command line • cd ~ && mkdir code && cd code • truffle init • ls -la • Open a new terminal tab or window • testrpc
  • 9.
    Let’s See itWorking!! • Command line • truffle compile • truffle migrate –reset • truffle test
  • 10.
    Minor Change toTests • 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

Editor's Notes

  • #6 Windows installer - http://blog.teamtreehouse.com/install-node-js-npm-windows