The Webui demonstrates a simple, reusable Node.js web application based on the Express framework that interacts with OpenWhisk APIs and provides an interface to list and Invoke actions,Packages and API gateway routes. The app extensively uses JavaScript client library(npm package) for the OpenWhisk platform.
OpenWhisk is a serverless platform that lets developers quickly and easily build feature-rich apps that automatically trigger responses to events.
Try out OpenWhisk in your Browser to create actions, automate actions using triggers, and explore public packages. Visit the learn more page for a quick tour of the OpenWhisk User Interface.
You can use the OpenWhisk command line interface (CLI) to set up your namespace and authorization key. Go to Configure CLI and follow the instructions to install it.
git clone https://github.com/VidyasagarMSC/openwhisk-nodejs-webui.git
npm install
to install the app's dependencies OpenWhisk_HOST = "openwhisk.ng.bluemix.net"
OpenWhisk_AuthKey=" "
For OpenWhisk auth key, run the below command
wsk property get --auth
Run npm start
to start the app
Access the running app in a browser at http://localhost:6007
Go to the root of the folder on your terminal, run the below command
cf push
Based on the artifacts in your manifest.yml file, NodeJS runtime is created and you can see your app running on the host your provided.
Replace localhost:6007 with your Bluemix Hostname to test this on your public url.
Refer openwhisk-nodejs-api repo