Giter Club home page Giter Club logo

fabric-chrome-extension's Introduction

Lab Name

Hyperledger Fabric Chrome Extension

Short Description

This is a Fabric Chrome extension paired with a Javascript API. Users should be able to use the Chrome Extension to authenticate to a Fabric network. The Chrome Extension should provide a JavaScript API that websites call to perform the following functions

This project is similar to MetaMask, which works with Ethereum: https://metamask.io/

Scope of Lab

Internship Project

Initial Committers

Daniel McSheehy (DanielMcSheehy, [email protected])

Sponsor

Sheehan Anderson (srderson, [email protected]) Binh Nguyen (binhn, [email protected])

Instructions

  • Install npm
  • Clone repo with git clone https://github.com/hyperledger-labs/fabric-chrome-extension/edit/master/README.md to desired directory.
  • cd fabric-network/Server

If you have Fabric 1.2 installed:

  • cd bash startFabric.sh
  • In a second tab in the same directory run bash registerAdmin.sh and then bash registerUser.sh.
  • In the third tab (same location) run nodemon server.js.

If you do not have Hyperledger Fabric Installed: run setup.sh. (This will install Fabric, register Admin/User, launch a fabric network, and start the middleware automatically)

Install Chrome extension:

  • Go to chrome://extensions/ and turn on Developer mode on the top right.

  • To install chrome extension click "Load Unpacked" on the extensions page and then select fabric-chrome-extension folder inside this project.

  • For testing open site-example/fabric-site.html with chrome to use with the extension.

Usage

  • On the chrome extension UI there is an input label Network url. Type in http://localhost:8000 and then click set.

  • The chrome extension will fetch the peer and orderer url from the middle ware (service discovery) and insert into the forms.

  • Click submit.

  • When changing network settings click save network settings on extension to save it. (Saved peers are displayed in green, not grey)

  • On the example site, try submitting a key and value on the send transaction forms and then hit send.

  • Opening the console should show more information about transactions and responses.

fabric-chrome-extension's People

Contributors

tkuhrt avatar

Watchers

James Cloos 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.