Giter VIP home page Giter VIP logo

uptime-verification-oraclize's Introduction

This repo is to demonstrate how an Oraclize smart-contract is used in managing an ISP and its customers account by debiting the ISP account anytime there is a breach in contract in the offtime value gotten from the API using Truffle & the Ethereum-Bridge to do most of the heavy lifting for you. Head on over to the ./test folder to examine the javascript files that thoroughly test the smart-contract, which latter you will find in ./contracts.

📃 Instructions

1) Fire up your favourite console & clone this repo somewhere:

❍ git clone https://github.com/vahiwe/Uptime-Verification-Oraclize.git

2) Enter this directory & install dependencies:

❍ cd Uptime-Verification-Oraclize && npm install

3) Install npx if not already installed:

❍ sudo npm install -g npx

4) Launch Truffle:

❍ npx truffle develop

5) Open a new console in the same directory & spool up the ethereum-bridge:

❍ npx ethereum-bridge -a 9 -H 127.0.0.1 -p 9545 --dev

6) Once the bridge is ready & listening, go back to the first console with Truffle running & compile the contract code

❍ truffle(develop)> compile

7) Migrate the contract to the network:

❍ truffle(develop)> migrate

8) Set the tests going!

❍ truffle(develop)> test

9) Open a new console in the same directory & Start up the ÐApp:

❍ npm run dev

 

📷 Passing Tests:

The passing tests

 

🌐 ÐApp Homepage:

ÐApp Homepage

 

ℹ️ Links:

  • Click here to view a video on setting up the system
  • This is a link to images of the IoT Device used in keeping record of time

 

Happy developing!

uptime-verification-oraclize's People

Contributors

vahiwe avatar

Stargazers

 avatar

Watchers

 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.