Skip to content
A example of a decentralized app that utilizes a smart contract to transfer funds
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contracts
migrations
public
screenshots
src
.gitignore
README.md
license.txt
package-lock.json
package.json
truffle-config.js
yarn.lock

README.md

Dapp Demo

A example of a decentralized app that utilizes a smart contract to transfer funds (link to slides with instructions/solutions).

Setup

Make sure you have Node, the Metamask extension, and Git installed.

  1. Clone the repo
$ git clone https://github.com/jp3hou/dapp-demo
$ cd dapp-demo
  1. Install dependencies using npm
$ npm install
  1. Compile the smart contracts with truffle
$ npm run compile
  1. Run a local blockchain server using ganache
$ npm run blockchain
  1. Deploy smart contracts onto your blockchain server
$ npm run migrate
  1. Start your frontend server
$ npm run start

Open your browser to http://localhost:3000 to see your local environment! The constructor in the KatCoin.sol contract auto-mints 30 KatCoins and displays them in the frontend React app. Screenshot

Video demonstration of a KatCoin purchase:

Demo

You can’t perform that action at this time.