Skip to content

Server connecting Hyperledger Chaincode to the client (REST endpoint)

Notifications You must be signed in to change notification settings

JoseMiguelHerrera/BlockVoteNode2-1484110642242

Repository files navigation

Node.js Starter Overview

The Node.js Starter demonstrates a simple, reusable Node.js web application based on the Express framework.

Run the app locally

  1. Install Node.js
  2. Download and extract the starter code from the Bluemix UI
  3. cd into the app directory
  4. Run npm install to install the app's dependencies
  5. Run npm start to start the app
  6. Access the running app in a browser at http://localhost:6001

Manually reset the blockchain

  1. Log on to Bluemix.com
  2. Look at services and delete the Blockchain service used by Node.js server
  3. Go into BlockVote-DB and
  4. delete 'blockvote'
  5. Make a new Blockchain Service
  6. Launch the Blockchain Service and then copy the Service Credentials and overwrite thte ServiceCredentials.json with this new one.
  7. Push the changes, wait for the Node.js server to reset and use the new blockchain service
  8. When BlockVoteNode2 is in running state you can start the init operation

About

Server connecting Hyperledger Chaincode to the client (REST endpoint)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published