learn-solidity
learn-solidity copied to clipboard
Learn Solidity Step by Step
Learn Solidity
Learn Solidity Step by Step
Prerequisite
To Run these examples please follow following steps
Installation
- 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
OR -
Geth --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
Compile, Deploy and Test Project
-
Go to project folder e.g
-
cd 01_HelloWorld
-
-
Inside that folder Compile with following command
-
truffle.cmd compile
on Windows -
truffle compile
-
-
Deploy Contract with following command
-
truffle.cmd migrate
on Windows -
truffle migrate
-
-
Test Contract with following command
-
truffle.cmd test
on Windows -
truffle test
-