Skip to content

nixsolutions/blockchain-poc-backend

Repository files navigation

Back-application

This application provides client interaction with the blockchain network. Among the required dependencies in the file packaje.json are "fabric-ca-client" and "fabric-network". These are the Node.js SDK tools for working with a Hyperledger Fabric network.

In order to install the application, you need to clone the project on the server on which the Hyperledger Fabric network is located:

cd ~
git clone https://github.com/nixsolutions/blockchain-poc-backend.git

and install the dependencies:

cd back
npm install

Creating database tables

It is necessary to connect to the database:

vim ~/back/config/config.json

Here you need to assign the key "host" the correct value.

Our application has prepared migrations and seeds. You need to run them:

npx sequelize-cli db: migrate
npx sequelize-cli db: seed: all

Application launch

Set exports.hostName to constants.js (value for the current server):

vim ~/back/constants.js

Now you need to run the command:

npm start

The back / services / folder contains methods that interact with the network using the Node.js SDK.

License

The project is developed by NIX Solutions Go team and distributed under MIT LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published