Repository is created to understand
- State Variable
- Structures
- The import Statement
- Contracts
Solidity Programing essentials and step by step learning
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
-
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