Developing Serverless Web Applications on the IBM Cloud
In this introduction to a miniseries about IBM cloud, we take a look at a diagram with information on the flow of IBM Cloud.
Join the DZone community and get the full member experience.Join For Free
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.
Opinions expressed by DZone contributors are their own.