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 --testnetORGeth --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 compileon Windowstruffle compile
-
Deploy Contract with following command
truffle.cmd migrateon Windowstruffle migrate
-
Test Contract with following command
truffle.cmd teston Windowstruffle test