The Node.js Starter demonstrates a simple, reusable Node.js web application based on the Express framework.
- Install Node.js
- Download and extract the starter code from the Bluemix UI
- cd into the app directory
- Run
npm install
to install the app's dependencies - Run
npm start
to start the app - Access the running app in a browser at http://localhost:6001
- Log on to Bluemix.com
- Look at services and delete the Blockchain service used by Node.js server
- Go into BlockVote-DB and
- delete 'blockvote'
- Make a new Blockchain Service
- Launch the Blockchain Service and then copy the Service Credentials and overwrite thte ServiceCredentials.json with this new one.
- Push the changes, wait for the Node.js server to reset and use the new blockchain service
- When BlockVoteNode2 is in running state you can start the init operation