Learn Solidity Step by Step
To Run these examples please follow following steps
- Install Geth (https://ethereum.github.io/go-ethereum/downloads/)
- Install Truffle
npm install -g truffle
- Start Test Network - There are three options
- Use Test network using following comming
Geth --testnet
ORGeth --rinkeby
- Create Private network
- Use ganache-cli
- npm install -g ganache-cli
- Run ganache-cli using following command
ganache-cli
- This will create Test network
- Use Test network using following comming
-
Go to project folder e.g
cd 01_HelloWorld
-
Inside that folder Compile with following command
truffle.cmd compile
on Windowstruffle compile
-
Deploy Contract with following command
truffle.cmd migrate
on Windowstruffle migrate
-
Test Contract with following command
truffle.cmd test
on Windowstruffle test