2021 Call for Code Awards: Live from New York, with SNL’s Colin Jost! Learn more

Archived | Create an insurance quote application using Appsody

Archived content

Archive date: 2021-02-25

This content is no longer being updated or maintained. The content is provided “as is.” Given the rapid evolution of technology, some content, steps, or illustrations may have changed.


Appsody is an open source project that provides the following tools you can use to build cloud-native applications:

  • A command-line interface (CLI) to develop containerized applications, test them locally, and then build and deploy them to Kubernetes
  • A set of pre-configured “stacks” and templates for popular open source runtimes (such as Node.js and Spring Boot) on which to build applications

Appsody stacks build a pre-configured Docker image that is ready to be deployed in a cloud environment. This pattern shows you how to use preconfigured Appsody stacks and templates to build a sample insurance quote app.


After completing this code pattern, you will understand how to:

  • Create a frontend web application using Appsody’s Node.js Express stack.
  • Create a backend REST application using Appsody’s Spring Boot stacks
  • Test the applications locally in a containerized environment
  • Deploy the applications to the IBM Cloud Kubernetes Service

As you walk through the pattern, you will learn how to use Appsody stacks — in particular, the Node.js Express stack and the Spring Boot 2 stack. We’ll show you how to create, modify, and test a sample application and run it locally.

We’ll also introduce you to a key Appsody function, the appsody deploy command and walk you through the steps of how to use the command to deploy your containerized application to a Kubernetes environment.


Process diagram

  1. The user enters the URL of the frontend application into a browser. The frontend application displays an insurance quote form in response.
  2. The user fills in the form and clicks a button to submit it. The frontend application validates the form data and sends a REST request to the backend application.
  3. The backend application uses the Dacadoo Health Score API to compute a health score from the form data and then computes a quote from that.


Find the detailed steps for this pattern in the README file. The steps show you how to:

  • Create a frontend web application using Appsody’s Node.js Express stack and run it locally.
  • Create a backend REST application using Appsody’s Spring Boot 2 stack and run it locally.
  • Deploy the backend application to the IBM Cloud.
  • Deploy the frontend application to the IBM Cloud.