You can deploy the application to IBM Cloud with the network hosted on the IBM Blockhain Starter Plan.
-
Next, add the
admin@clp-network.card
file towebapp
folder. We will deploy the card with application. -
Update
package.json
file in yourweb-app
folder and make the following update to thestart
script.
"scripts": {
"start": "composer card import -f admin@clp-network.card && node app.js",
Add the following to ensure correct node version
"engines": {
"node": "^8.11.0"
},
- Open
manifest.yml
file. Give a unique url name by updating thename
field.
applications:
- disk_quota: 1024M
name: clp-on-ibm-blockchain
buildpack: sdk-for-nodejs
command: "npm start"
path: "."
instances: 1
memory: 256M
- Now you are ready to deploy the application to IBM Cloud. You can use IBM Cloud CLI to deploy the application. In the
web-app
directory, run the following command.
bx push
View a sample app here: http://clp-test-ibm-blockchain.mybluemix.net/