diving_into_ethereum

Diving into Ethereum development

Stars
2

Setup the Ethereum ecosystem

The Ethereum ecosystem can be setup locally for development purpose or we can connect to a real blockchain. The local blockchain can be setup using an in-memory blockchain called Ganache.

Make sure that you have a latest version of nodejs and npm. Here is a install guide for Ubuntu system.

Install local blockchain (Ganache)

sudo npm install -g ganache-cli [email protected]

Install mainnet/testnet blockchain client (Optional)

Mac OSX:

brew tap ethereum/ethereum
brew install ethereum

Ubuntu:

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum

Run the Ethereum node:

geth --rinkeby --syncmode "fast" --rpc --rpcapi db,eth,net,web3,personal --cache=1024  --rpcport 8545 --rpcaddr 127.0.0.1 --rpccorsdomain "*"

Setup a development environment

We can start the Ethereum development from scratch or use an existing framework such as truffle.

Truffle framework

Truffle framework makes the development and deployment process smoother by creating a framework for development. The the framework will help to easily create and deploy the DApp.

sudo npm install -g truffle

Create an issue if there is any flaw in the documentation or the contract.

You are also welcome to contribute to the project:

  • Create a feature issue

  • Fork the repo

  • Commit your changes with appropriate message and also point the created issue

    Ex: fixes proof of ownership contract: issue #1

  • Create a Pull request (PR) from your repo to this repo

  • Point the issue in a comment of the PR.

Thanks!