Your first dapp- an adoption tracking system for a pet shop. The complete tutorial from Truffle can be found here.
There are a few technical requirements before we start. Please install the following:
Node.js v6+ LTS and npm (comes with Node)
Git
$ node -v v8.11.1
$ npm -v 5.6.0
$ truffle version
Truffle v4.1.8 (core: 4.1.8)
Solidity v0.4.23 (solc-js)
$ # Ganache
$ # MetMask version: 4.6.1
-
Download the complete repository and go to the folder in your terminal
-
Run the development console.
truffle develop
-
Compile and migrate the smart contracts. Note inside the development console we don't preface commands with truffle.
compile migrate
-
Open another ternminal and Run the liteserver development server (outside the development console) for front-end hot reloading. Smart contract changes must be manually recompiled and migrated.
// Serves the front-end on http://localhost:3000
npm run dev