Create First DApp Using Truffle and Ganache
- Understanding of Blockchain, Ethereum and Solidity language
This tutorial will take you through the process of building your first dapp---an adoption tracking system for a pet shop!
In this tutorial we will be covering:
Setting up the development environment
Creating a Truffle project using a Truffle Box
Writing the smart contract
Compiling and migrating the smart contract
Testing the smart contract
Creating a user interface to interact with the smart contract
Interacting with the dapp in a browser.
Pete Scandlon of Pete's Pet Shop is interested in using Ethereum as an efficient way to handle their pet adoptions. The store has space for 16 pets at a given time, and they already have a database of pets. As an initial proof of concept, Pete wants to see a dapp which associates an Ethereum address with a pet to be adopted.
The website structure and styling will be supplied. Our job is to write the smart contract and front-end logic for its usage.
Truffle is a world class development environment, testing framework and asset pipeline for blockchains using the Ethereum Virtual Machine (EVM), aiming to make life as a developer easier. With Truffle, you get:
Built-in smart contract compilation, linking, deployment and binary management.
Automated contract testing for rapid development.
Scriptable, extensible deployment & migrations framework.
Network management for deploying to any number of public & private networks.
Package management with EthPM & NPM, using the ERC190 standard.
Interactive console for direct contract communication.
Configurable build pipeline with support for tight integration.
External script runner that executes scripts within a Truffle environment.
Who this course is for:
- Beginners for Creating first Decentralised Application (DApp).
I am Gaurav Garg, I am graduate in Bachelor of Computer Applications. I am working in the game industry for the last 12 years. I worked on several games for iOS and Android like Realsteel, Mana Monsters, Dancing with the stars, Boss of Bots, Ironkill are the name of few.