Giter Club home page Giter Club logo

birth-registry-hyperledger-fullstack's Introduction

Birth-Registery App 1 Org and Frontend

IF YOU HAVE ANY QUESTIONS, FEEL FREE TO RAISE A ISSUE.

App to register the bith data on the HyperLedger Fabric Network using CouchDB to store the data. REST APIs to Integrate it to the front-end.

- Make sure you have all the necessary Dependencies Installed on your system (Fabric Binaries, docker, node etc.)

- Before Starting the project Make sure to Delete the contents of {Crypto & Fabric-client-kv-org1} directory.

Steps to start the project-

1. Creating the Channel

-first Navigate to Scrips directory [cd scripts]

-then run the cleanup script to clean the docker [./cleanup.sh]

-Create the channel Artifacts [./create-artifacts.sh]

-Then do the docker up [./docker-up.sh]

-Create the channel [./createChannel.sh]
	**--if it gives error "Peer not found" close the current terminal open a new terminal**

2. Deploying the Chaincode

-open the **deployChaincode.sh** file and scroll to the bottom where functions are called

-commend all the fuction calls except **presetup** fuction and run the script [./deployChaincode.sh]
	**--This install dependencies, if there is an error in installation, then go to chaincode folder and install dependencies directly from there**

-Similarly now commend all the function calls except **packageChaincode** function and run the script again.

-Do the same process for all the functions by running one function at a time in a sequence.
	**--After calling the function **queryInstalled** run the command [ export PACKAGE_ID= '<Package ID that is returned after Installation on chaincode>' ]**

-Run remaining functions. 

-now the chain code is installed, approved and Invoked.

3. start REST API

-in the main directory install the node dependencies [npm install / npm install --force]
-then type the command **node app.js** to start the REST API

4. Setup the front-end

-Navigate to front-end folder and do **npm install**
-start the server **npm start**

5. View the couchDB

-to view the database running on the local host navigate to http://localhost:5984/_utils/#/_all_dbs

Future Changes - couchDB will be changed with the postgreSQL

IF YOU HAVE ANY QUESTIONS OR PROBLEMS, FEEL FREE TO RAISE A ISSUE.

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.