Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 673 Bytes

05-smart-contract-truffle.md

File metadata and controls

54 lines (43 loc) · 673 Bytes

Truffle Framework

Build - Run - Test - Deploy

Setup truffle

npm install -g truffle

Setup testrpc

# Install
npm install -g ethereumjs-testrpc

# Run
testrpc

Setup project

truffle init

Build

truffle compile --all

Deploy

truffle migrate --reset

Develop

This will use testrpc inside truffle port 9545

# To getting in
truffle develop

# To getting out
.exit

Console

# To getting in
truffle console

# To getting out
.exit

Example

SimpleStorage example with getter/setter and simple test Source : https://github.com/katopz/truffle-simple-storage-example