Truffle is an open source framework for building dapps and smart contracts on Ethereum. It includes tools to develop, deploy and test smart contracts locally using Ganache, a personal blockchain for testing, as well as on public or private networks. Key aspects include writing smart contracts in Solidity, compiling and migrating them to the blockchain simulator Ganache, and testing contracts using Truffle's built-in assertion library and testing framework.
3. DAPPs - Application on Blockchain
Internet
Client Server P2P
Web Application
(Web 2.0)
Blockchain
P2P
Application
DAPPs
4. Your Local Machine
Smart Contract Development
Private / Public Testnet & Mainnet
RINKEBY
Mainnet
ROPSTEKOVAN
Development
Public Testnets
Private
Testnet
5. - Truffle Sweet is an open source libraries developed by ConsenSys
Truffle Sweet - Libraries and Toolkits
Make Smart Contract Development Easier
Front End Development Library
State Management with Redux
Smart Contract Development
Framework & Libraries
Blockchain Simulator
6. Download
Install
Launch
Installation of Ganache GUI
http://truffleframework.com/ganache/
- Ganache prepares a private blockchain simulation environment
- By default 10 accounts are created with 100.00ETH
- By default the Ganache server listens at http://localhost:7545
- You can change the settings from button on the right top
8. Installation of Truffle
$ npm install -g truffle
$ mkdir truffle | cd truffle
$ truffle init
Solidity Scripts
(Smart Contracts)
Migration File
Test Scripts
(Can be written in either
Solidity or JavaScript)