Skip to content

rabbah/wsk-qr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create a serverless UI to generate QR codes from text using OpenWhisk.

To build and deploy the QR generator and web UI, you'll need the OpenWhisk wsk CLI. The quickest way to get started is to sign up and download it from IBM Cloud Functions. You'll also need gradle to build the Java action.

How to build and deploy:

  1. gradle jar
  2. wsk package create qr
  3. wsk action create qr/generate build/libs/wsk-qr-1.0.jar --main qr.Generate --web true
  4. wsk action create qr/ui src/main/js/qr/ui.js --web true

That's it. You can now try it by accessing the URL for the UI you deployed. To help you discover the URL, you can run use the included helper action. 5. wsk action create host src/main/js/host.js 6. wsk action invoke host -br -p path qr/ui.html

On Mac OS, this is a convenient way to open the URL in your browser:

   wsk action invoke host -br -p path qr/ui.html | grep url | awk -F" " '{print $2}' | xargs open

About

Examples of building OpenWhisk web actions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.8%
  • Java 22.0%
  • Shell 14.2%