Setting Up an Ethereum Blockchain Contract
Before we start, we will need to download and install all the necessary libraries.
Mist browser
The Mist browser is the tool of choice to browse and use Dapps (Decentralized Applications).
Documentation:
https://github.com/ethereum/mist
Initialisation:
$ git clone https://github.com/ethereum/mist.git
$ cd mist
$ yarn
If you are getting the message 'yarn: command not found', just install yarn:
Yarn is a package manager for your code.
Yarn documentation:
https://yarnpkg.com/lang/en/docs/getting-started/
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --nightly
Do not forget to restart Terminal/CMD
The Go Ethereum command line client (geth)
Installation on MAC:
If you do not have Homebrew install it first
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Otherwise install Geth with brew
brew tap ethereum/ethereum
brew install ethereum
Installation on WINDOWS:
Download Geth
https://geth.ethereum.org/downloads/
Extract geth.exe from zip, open a command terminal and type:
chdir path to extracted binary
open geth.exe
NodeJS + NPM
NPM is the easiest way to share and reuse JavaScript code. NPM comes standard with Node.js
Node.js is an open source server framework that uses JavaScript on the server.
Download NodeJS
https://nodejs.org/en/
Google Chrome browser
Download Chrome if you don't have it on your computer.
https://www.google.com/chrome/
MetaMask Chrome extension.
MetaMask is an extension for accessing Ethereum and Dapps.
https://metamask.io
And finally ...
Solidity compiler
You can use SOLC compiler via Node.js, you can install it via npm:
npm install solc
or
Use Remix compiler online, you don’t need to install anything:
https://remix.ethereum.org/#optimize=false&version=builtin
Now you are good to go, happy blockchaining!