Coder Social home page Coder Social logo

olvresc / hyperledger-typescript-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wearetheledger/hyperledger-typescript-boilerplate

0.0 0.0 0.0 819 KB

This is a boilerplate that interacts between Hyperledger Fabric Peers and a front end.

Home Page: http://theledger.be

License: MIT License

Dockerfile 1.25% TypeScript 98.63% Shell 0.12%

hyperledger-typescript-boilerplate's Introduction

Note: This boilerplate has been designed for quickstarting prototype applications. Some practices used in this boilerplate are not recommended for a production environment.

Build Status Greenkeeper badge

This is a starter template that interacts between Hyperledger Fabric Peers and a front end. Currently, this boilerplate provides the following features:

  • Connects out of the box with the fabcar sample network
  • Express backend built with typescript using Nest
  • Restful routing to connect a custom frontend
  • Automatic OpenAPI (Swagger) generation
  • Fabric Client and Fabric Ca CLient abstraction (https://martinfowler.com/bliki/CQRS.html)
  • Frontend chain transaction notifications using Pusher
  • Solves Hyperledger concurrency issues by using a FIFO AWS SQS queue.
  • Example Authentication using Auth0
  • Automatic attribute based access crontrol using auth0

Installation

In order for this application to run properly and handle invokes concurrently, you should have set up an account on AWS to be able to use the AWS SQS Service. During development, the SQS Queue can be bypassed using an environment variable: BYPASS_QUEUE=1 A Pusher account is also required if you want to make use of transaction event handling in a frontend. Auth0 will require Auth0 credentials.

Be sure to have an up to date node.js configuration:

    "engines": {
        "node": "^8.9",
        "npm": "^5.6"
    }

Install dependencies

npm i or yarn

Starting the app

npm start or yarn start

E2E Tests using Jest (wip)

npm test or yarn test

Work in progress and future plans:

  • switch to nestjs microservices
  • use of redis queue instead of SQS
  • ci pipeline config for gitlab & kubernetes on google cloud
  • graphql integration
  • auth mock to circumvent Auth0 for rapid prototyping

Contributing

  1. Fork it! ๐Ÿด
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request ๐Ÿ˜ ๐ŸŽ‰

Credits

License

The MIT License (MIT)

Copyright (c) 2018 TheLedger

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

hyperledger-typescript-boilerplate's People

Contributors

jestersimpps avatar sneljo1 avatar greenkeeper[bot] avatar michielmulders avatar dpk28 avatar kevinnio1 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.