Git Product home page Git Product logo

mona-lease's Introduction

A dApp for self-executing rental agreements paid in Ethereum.

Used by Co-working spaces.
(live trials beginning 2018 Q3)

Development

Install

$ npm install

Build and Deploy

First start up a chain running on port 8545, Ganache is recommended, a la:

$ ganache-cli -p 8545 -m oil snack powder kiwi exhibit clay rate table famous behind final river
$ truffle compile

Run

Note that a web3 enabled browser (such as Chrome with Metamask) is required to run the dApp

$ npm start  

Unit tests

$ truffle test

Live Instance

http://45.79.83.93:8080/. (TODO: add link to specific lease contract !)

The live instance is hosted on 45.79.83.93 (in /projects/mona-lease).

Pushing to the live-instance-codecave branch results in a redeploy.
Note that it will take a while to complete because it does a full 'npm install' and build every time.

This is implemented by setting up the Webhook (under Settings (only repo owner can do this)) to call an action on the server (http://45.79.83.93:4552/).

So there are two pm2 processes running on the server, one for the webhook, and one that is the webserver, these are both in the /deploy folder, and are created by running :

# ./deploy/run-once-create-pm2.sh 

mona-lease's People

Contributors

krisrandall avatar nordahir avatar bazmatic avatar

Stargazers

Trần Thị Linh avatar José Wenceslao Castillo avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.