- Bityoga fabric sdk should be up and running
- Node version
- Supports node version >=v11.0.0
- Tested with v11.0.0
-
git clone https://github.com/bityoga/tic_dashboard.git
-
- cd tic_dashboard/
- Set node version :
nvm use node v11.0.0
(using nvm) - Execute Command :
npm install
-
- In app.js , update
const TEST_LOCAL = 0;
toconst TEST_LOCAL = 1
; - create a directory "file_explorer" one level outside the tic_dashboard directory
mkdir -p ../file_explorer/certificates && mkdir -p ../file_explorer/chaincodes
- ../file_explorer/certificates - This is path of certificates locally. Put some files under this for testing locally.
- ../file_explorer/chaincodes - This is path of certificates locally. Put some files under this for testing locally. Create a drectory for each chaincode and put some files here.
- In app.js , update
-
cd tic_dashboard/
- Execute Command :
node app.js
- app will be running in 'localhost' at port 3003
- open in browser: http://localhost:3003/
fabric_as_code deployment
- This is deployed along with the cli service playbook103.deploy_cli.yml
- Deployment happens throuh CLI.sh
$ git clone https://github.com/bityoga/tic_dashboard.git
$ cd tic_dashboard
$ npm i # Run this to generate package-lock.json which will be required for creating docker image
Do step 3 as said above if running locally
$ docker build --tag tic-dashboard-app .
$ docker run -d --name tic-dashboard-app -p 3003:3003 tic-dashboard-app:latest
$ docker service create --name tic-dashboard-service --replicas 1 -p 3003:3003 tic-dashboard-app:latest