Interactive learning environment for OpenWhisk command line

Share: Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditEmail this to someonePrint this page

OpenWhisk is a new distributed compute service to execute application logic in response to events. It has a built-in CLI which employs its own syntax.

Tutorial

The OpenWhisk CLI tutorial is an interactive learning environment to get familiar with the OpenWhisk command line. While the OpenWhisk documentation is very extensive and concise, we thought that simulating the user interaction through a web app may lead to a shallower learning curve for the OpenWhisk CLI users.

The tutorial is organized into five main trails: actions, triggers, rules, packages and mobileSDK. Each category has a set of assignments that are to be completed by the user in order to move forward in the tutorial. The home page (Figure 1) lists out all of the available trails.

OpenWhisk CLI Homepage

Figure 1: OpenWhisk CLI Tutorial Homepage

 

Selecting one of the trails takes the user to a screen (Figure 2) that is divided into two sections. The left section provides information about the current assignment and sufficient background information on how to complete the assignment. The right side of the screen holds the terminal. The users is required to type in the commands to complete the corresponding assignment. The steps indicator in the right upper corner indicates what assignment the user is currently on, and how many assignments are left to complete.

OpenWhisk CLI Terminal Figure 2: OpenWhisk CLI Tutorial Terminal Page

We have currently ported the content related to actions. The actions tutorial contains assignments to:

  • create an action out of a piece of code
  • invoke a blocking and non-blocking actions
  • get the results of an executed action
  • create a chain of actions

We have laid down the skeleton for the rest of the OpenWhisk components. As you utilize the CLI and learn more about triggers, rules, packages and mobileSDK, you can submit additional content contributions to fully address all OpenWhisk CLI commands within the tutorial. Follow the instructions at https://github.com/openwhisk/openwhisk-tutorial to contribute content or extend the project!

Try it!

You can try the OpenWhisk CLI interactive tutorial at http://lrnwsk.mybluemix.net/ 

In full disclosure, this project was based on the awesome docker.io tutorial!

Share: Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditEmail this to someonePrint this page

Leave a Reply

Your email address will not be published. Required fields are marked *