Giter VIP home page Giter VIP logo

hlf-course-domain-model's Introduction

This code is part of a course on Hyperledger Fabric For more information on the course, please visit

http://ACloudFan.com

  • airlinev1 Used in the lecture on Introduction to modeling a Resource

  • airlinev2 Extends the model with a participant type resource

  • airlinev3 Discussed the idea of flight and routes. Talks about use of arrays

  • airlinev4 Extends the model to define the relationship between Flight and the aircraft

  • airlinev5 Shows how field level validations are created

  • airlinev6 Unique identity requirement for assets and participants. Provides the solution to the exercise.

  • airlinev7

  • airlinev8 Shows how to

    • Write Test cases
    • Use the embedded runtime for testing
    • Error handling in TP functions
  • airlinev9

    • More TP functions

toolbox docker https://developer.ibm.com/opentech/2016/07/21/running-hyperledger-fabric-natively-on-windows/

volume mount on toolbox https://stackoverflow.com/questions/33126271/how-to-use-volume-option-with-docker-toolbox-on-windows

hlf-course-domain-model's People

Contributors

acloudfan avatar naveedh27 avatar spasibokojima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hlf-course-domain-model's Issues

error: type not found

$ node generateFights.js
Usage: node populate-acme-airline
Populating Network using a card: admin@airlinev1
{ TypeNotFoundException: Type CreateFlight is not defined in namespace org.acme.airline.flight
at ModelManager.getType (/home/deepak1928/Documents/Hyperledger-tutorial/Hyperledger_v1/Airline/HLF-Fabric-API/node_modules/composer-common/lib/modelmanager.js:453:19)
at Factory.newResource (/home/deepak1928/Documents/Hyperledger-tutorial/Hyperledger_v1/Airline/HLF-Fabric-API/node_modules/composer-common/lib/factory.js:105:45)
at Factory.newTransaction (/home/deepak1928/Documents/Hyperledger-tutorial/Hyperledger_v1/Airline/HLF-Fabric-API/node_modules/composer-common/lib/factory.js:227:32)
at createFlights (/home/deepak1928/Documents/Hyperledger-tutorial/Hyperledger_v1/Airline/HLF-Fabric-API/util/generateFights.js:58:35)
at main (/home/deepak1928/Documents/Hyperledger-tutorial/Hyperledger_v1/Airline/HLF-Fabric-API/util/generateFights.js:32:5)
at /home/deepak1928/Documents/Hyperledger-tutorial/Hyperledger_v1/Airline/HLF-Fabric-API/bn-connection-util.js:46:13
at
name: 'TypeNotFoundException',
typeName: 'org.acme.airline.flight.CreateFlight' }

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.