Create an insurance quote application using Appsody
Create a frontend web app and backend REST app using Appsody's Node.js and Spring stacks
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.
- The user enters the URL of the frontend application into a browser. The frontend application displays an insurance quote form in response.
- 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.
- 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.