Skip to content

Latest commit

 

History

History
119 lines (67 loc) · 1.96 KB

README.md

File metadata and controls

119 lines (67 loc) · 1.96 KB

blockchain-dapp-hack-starter

Template to turbo charge your Blockchain DAPP Development

If you like this project, give it a GitHub stars. If you find issues, create an issue.

Prerequisites

  • Node : tested on NodeJS v8+

  • Truffle Version 4+ : npm install -g truffle

  • testrpc : npm install -g ethereumjs-testrpc

Installing

Install npm dependencies:

> npm install

Clean build directory:

> npm run clean 

Run Truffle Console:

> npm start 

or

> truffle develop

Running Tests

> npm test

Or in the truffle console: truffle develop

truffle(develop)> test

Running (Migrate & Deploy Contracts)

In the truffle console: truffle develop

truffle(develop)> migrate --reset --compile-all

Deploy Web App

Another Terminal:

> npm run dev  

Features

Template benefits:

  • Cross platform (commands should work on windows & linux/mac)
  • Useful npm scripts
  • Sample example of connecting UI to contract

Sample Customer Solidity contract showcases:

  • Returning tuples
  • Using structs
  • Work-around for passing contract data in the constructor

Sample Front-end showcases:

  • Converting bytes32 contract data back to strings
  • Listening for events triggered on the smart contract

Reading Contract State:

Changing Contract State:

Watching Contract Events:

Built With

  • Truffle - The Ethereum development framework

Authors

License

This project is licensed under the ISC License