Giter Site home page Giter Site logo

trellixvulnteam / hyperledger-fabric-asset-app_kemx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peakcodes/hyperledger-fabric-asset-app

0.0 0.0 0.0 29 MB

This code is based on https://github.com/hyperledger/fabric-samples and https://github.com/hyperledger/education.git with changes to data outputs and query items

Shell 6.43% JavaScript 72.05% Go 13.18% CSS 1.81% HTML 6.53%

hyperledger-fabric-asset-app_kemx's Introduction

Hyperledger Fabric Sample Application

This application demonstrates the creation and transfer of assets between actors leveraging Hyperledger Fabric. We will set up the minimum number of nodes required to develop the chaincode (smartcontracts).There will be a single peer and a single orgranization in this application to show how the network operates.

Please ensure you have the following components on your computer before proceeding: *cURL *Node.js *npm package manager *Go language *Docker (https://docs.docker.com) *Docker Compose

Lets get started!

Please open your local terminal and clone the following repository

$ git clone https://github.com/hyperledger/education.git

Next navigate into the asset-app folder.

Make sure Docker is running at this time. Should you have used it prior, please run the code below to clear your containers.

$ Docker rm -f $(docker ps -aq)

Now lets start the Hyperledger Fabric network. Please enter the following command:

$ ./startFabric.sh

As the networks starts up you will see the initial "genesis block" be created which we will be the initial data we work with in this app.

Please now run the following command in the same folder:

$ npm install

Now lets spin up the application. Enter the following commands in the following order. You will also be directed in your terminal to enter this source code.

$ node registerAdmin.js

$ node registerUser.js

$ node server.js

The app is live and should be fully functioning. Please go to localhost:8000 in your web browser as your terminal will also direct you. There an application will appear.

In this application you will be able to query all assets currently registered in the genesis block as well as create additional asset you wish to track. Furthermore, have the ability to change owners(holders) of a particular asset.

To ensure your application is live and looks as it should, run the index.html file locally.

The itention of this application is for educational purposes and utilizes source code from the Hyplerledger Fabric Project (https://github.com/hyperledger/fabric) as well as the edEx Linux Foundation Hyplerledger course(https://github.com/hyperledger/education.git).

hyperledger-fabric-asset-app_kemx's People

Contributors

peakcodes avatar trellixvulnteam 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.