Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

clauseHQ/milestone-payment-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clause Demo Application

A demo client application that invokes a smart clause hosted on Clause Hub. This app uses the Milestone Payment template.

Running this demo on your machine

  1. Download this repository.

You can either download the latest release archive or if you have git installed simply git clone the repository:

git clone https://github.com/clauseHQ/milestone-payment-dashboard.git
  1. Install the dependencies.

You need NPM and Node run this app. You can download both from here.

npm install 
  1. Start the app.
npm start

You should see the following output.

mattmbp:milestone-payment-dashboard matt$ npm start

> [email protected] start /Users/matt/dev/clauseHQ/fragile-goods-app
> node app.js

App running at http://localhost:3000

  1. Open http://localhost:3000 in your browser.

  2. Create an instance of the Fragile Goods clause in your Clause Hub account.

In the template libary choose the milestone payment template.

Click Create Contract.

Then switch to the Connections tab.

  1. Paste in your execution URL from Clause Hub into the Execution URL field in the demo app.

  2. Click on "approve milestone" buttons to approve the respective milestones.

© Copyright 2018, Clause Inc.