This repo contains tutorials, notes and coude about how blockchain works.
It is a copy of an Udemy course which can be found at Link. It was originally made by Stephen Grider and the course is fantastic.
- Section 1 - What is Blockchain, Solidity etc.
- Section 2 - Solidity and Smart Contracts + a Sample Starting project
Inbox
Basic understanding of programming concepts and languages, especially Javascript.
Then there are some libraries that we have to install to start working on it:
- You will need Homebrew which you can get:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
You will need Xcode and command line tools installed. You will get XCode from the AppStore and command line tools as: Link
-
You will need npm, which you can get from:
# If you do not have node.js
brew install node
If you are struggling check out htis link: Link
To make sure you have Node and NPM installed, run two simple commands to see what version of each is installed:
To see if Node is installed, type node -v
in Terminal. This should print the version number so you’ll see something like this v0.10.31.
To see if NPM is installed, type npm -v
in Terminal. This should print the version number so you’ll see something like this 1.4.27
- Install
solidity
compilersolc
:
npm install solc
- Install test framework (Mocha), local test network (Ganache) and Web3, we are going to install a very specific version of web3, whcih follows the one described in the tutorial
npm install --save mocha ganache-cli web3@1.0.0-beta.26
Please feel free to submit a PR improving this tutorial, I have made it myself and I expect there are a lot of mistakes and misunderstandings so every help is very welcome.
Martin Ferianc, 2018-