Chapter 9. An OpenWhisk Web Application in Python
In this chapter, we are going to develop a non-trivial example of an OpenWhisk Python application using CouchDB/Cloudant. The application we are going to develop is a database table editor. The goal is to demonstrate coding in Python, by creating a web user interface that interacts with databases in OpenWhisk. We also cover testing in depth.
For illustration purposes, the application is actually split into two implementations. First we’ll build a basic application, with bare-bones functionality. Then we’ll create a more advanced implementation, with more complex features.
The source code for the examples related to this chapter is available in the GitHub repository.
CRUD Application Architecture
In the basic application, we cover:
Implementation and testing of database operations in Python
Creation and testing of a simple HTML user interface
Implementation and testing by “mocking” of the application control logic
When invoked, the application shows ...