Code Monkey home page Code Monkey logo

blockchain-multichain's Introduction

Private Blockchain (private DLT) using MultiChain

Application for proposals using blockchain with MultiChain.

Check out our blog if you want to learn more:

Architecture overview

MultiChain PoC Architecture

Repo info

  • multichain-app - Angular 6 client application
  • multichain-cli - example test scenario and execute this by MultiChain CLI
  • multichain-cluster - blockchain infrastructure
  • multichain-server - Java & Spring Boot & MultiChain Java API

Architecture

Our solution consists of 5 services:

  • multichain-master - multichain seed node
  • multichain-slave - multichain 2nd node
  • multichain-explorer - multichain 3rd node with UI for browsing blockchain
  • multichain-server - application backend (Spring Boot + in-memory database)
  • multichain-app - application frontend (Angular 6 served by nginx)

Use case

Your organization wants to implement an internal system for submitting different types of applications (for example: request for new equipment).
Each request must be approved by the manager.
Requests should be indisputable and immutable.

Example request and decision structure:

Request {userId, managerId, creationTime, requestContent}
Decision {managerId, Request, decisionResult, decisionTime}

JSON:

{
	"userId": "",
	"managerId": "",
	"creationTime": "",
	"requestContent": ""
}

{
	"managerId": "",
	"Request": {
            {
                "userId": "",
                "managerId": "",
                "creationTime": "",
                "requestContent": ""
            }
	},
	"decisionResult": "",
	"decisionTime": ""
}

Local development

Remember that MultiChainJavaAPI (using to connect with MultiChain) is not available in Maven Central Repository so you must build this library locally based on installation instruction in README.

Deployment & running

Each service is packaged as a separate container. To run whole system you can use docker + docker-compose.

Docker Compose

Prerequisites: local docker & docker-compose
To run application you simply execute command:

run.sh

Services are started with tty attached to current terminal.
To stop application just press:

Ctrl+C

Screens

Desktop main version

Mobile menu

Initial users

Request list

Decision list

DOCS

License

This project is released under the Apache 2.0 license (see LICENSE)

blockchain-multichain's People

Contributors

jarbinks avatar witek1902 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

blockchain-multichain's Issues

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.