With serverless platforms like IBM Cloud Functions different types of scenarios can be built. Very common scenarios are APIs and web applications. I’ve open sourced some code that shows how to build and deploy a completely serverless web application on the IBM Cloud in less than 10 minutes.
Check out my repo.
The sample contains not only serverless functions for the server side business logic of web applications, but also other components and functionality that you typically need like databases and API management. The static resources are also stored in the cloud without having to deploy servers. Additionally the authentication of users is done completely serverless as well.
Watch this 10 seconds video to see the authentication flow.
This diagram describes the main components:
I’ve written several scripts to make the deployment of the sample application very simple. A new IBM Cloud user should be able to set up the sample in less than 10 minutes. If you want to give it a try, get a lite account (free, no credit card required), install the prerequisites and run the scripts as described in the repo.
The scripts create instances of Cloudant, App ID and Object Storage. Lite account users are limited to one instance per service which is why I’ve also documented how to use existing service instances.
To find out more about the used IBM services, follow these links:
- IBM Cloud Functions powered by Apache OpenWhisk
- IBM Cloud Functions API Management
- IBM Cloud Object Storage
- IBM App ID
- IBM Cloudant
Thanks to Andrea Frittoli for helping me with the App ID setup.
This article is part of a mini series. Check out the other articles and documentation: