solidity intro

Post on 06-Apr-2017

30 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Setting Up a Solidity

EnvironmentBy 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

Mac1.Install Homebrew (

https://brew.sh) 2.Open command line

1. brew install node2. 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 –g2. npm install truffle –g3. 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

top related