Giter Club home page Giter Club logo

dapp-proof-of-identity's Introduction

Oraclize Proof-of-Identity Dapp + eWallet

Dependencies

General

NodeJS v5+

Yarn or NPM

Truffle v2.1.1

Testing

TestRPC v3.0.3

Ethereum-bridge v0.4.9 (included under bridge folder)

Install

Ensure the above dependencies are met and installed on your local system.

For deployment and testing, run install using your favoured node package manager in the root directory

npm install

Truffle unit tests

Get an instance of testrpc running with the following parameters

testrpc -m test -a 50

Run ethereum-bridge with the following parameters

node bridge -a 49 --dev --disable-price

Finally, run the tests (note some of the sections will take several minutes to complete as they are waiting for callbacks to come in from Oraclize)

truffle test

Network deployment using Truffle

The contracts can be conveniently deployed on a supported Oraclize network, simply by having an unlocked account running on your local ethereum node instance. When you have a node running with open rpc access, simply run

truffle migrate --reset

For automatic compilation and deployment to the current network

Using ReactJS web-app

Yarn is the preferred and recommended package manager here, and the instructions will assume you're using that. NPM should work as well.

Change to one of the ui subdirectories

To run a local dev instance

yarn start

For production build

yarn install

yarn build

Notes

Before deploying to a realnet, ensure you change the oraclizeLib.sol to set the network automatically. Comment out L60 and Uncomment L63.

The WalletOracle and DigitalIdOracle contracts will need to be topped up with Ether as well, so the Oraclize calls can successfully be executed.

dapp-proof-of-identity's People

Contributors

bertani avatar d-nice avatar

Watchers

 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.