acme-fitness-store icon indicating copy to clipboard operation
acme-fitness-store copied to clipboard

Sample - how to deploy Spring Boot apps to Azure?


page_type: sample languages:

  • java products:
  • Azure Spring Apps
  • Azure Database for PostgreSQL
  • Azure Cache for Redis
  • Azure Active Directory description: "Deploy Microservice Apps to Azure" urlFragment: "acme-fitness-store"

ACME Fitness Store

Check Markdown Links

ACME Fitness store is a fictional online retailer selling sporting goods. This repo contains the source code and deployment scripts for the ACME Fitness store application.

High Level Architecture

An image showing the services involved in the ACME Fitness Store. It depicts the applications and their dependencies

This application is composed of several services:

  • 4 Java Spring Boot applications:

    • A catalog service for fetching available products.
    • A payment service for processing and approving payments for users' orders
    • An identity service for referencing the authenticated user
    • An assist service for infusing AI into fitness store
  • 1 Python application:

    • A cart service for managing a users' items that have been selected for purchase
  • 1 ASP.NET Core applications:

    • An order service for placing orders to buy products that are in the users' carts
  • 1 NodeJS and static HTML Application

    • A frontend shopping application

The sample can be deployed to Azure Spring Apps Enterprise or Tanzu Application Platform.

Repo Organization

Directory Purpose
apps/ source code for the services
azure-spring-apps-enterprise/ documentation and scripts for deploying to Azure Spring Apps Enterprise
tanzu-application-platform/ documentation and scripts for deploying to Tanzu Application Platform

Deploy Apps to Azure Spring Apps Enterprise (ASA-E)

Azure Spring Apps Enterprise enables you to easily run Spring Boot and polyglot applications on Azure. The quickstart guide in azure-spring-apps-enterprise/README.md shows you how to deploy the ACME Fitness store application to Azure Spring Apps Enterprise.

  • Deploy Applications to Azure Spring Apps
    • What will you experience
    • What you will need
    • Install the Azure CLI extension
    • Clone the repo
    • Unit 0 - Prepare Environment
    • Unit 1 - Deploy and Build Applications
    • Unit 2 - Configure Single Sign On
    • Unit 3 - Integrate with Azure Database for PostgreSQL and Azure Cache for Redis
    • Unit 4 - Securely Load Application Secrets
    • Unit 5 - Monitor End-to-End
    • Unit 6 - Set Request Rate Limits
    • Unit 7 - Automate from idea to production
    • Unit 8 - Infuse AI into Fitness Store

Deploy Apps to Tanzu Application Platform (TAP)

Tanzu Application Platform (TAP) enables you to easily build & run polyglot applications on CNCF Compliant Kubernetes clusters. Follow the instructions in tanzu-application-platform/README.md to deploy the application to TAP.

Notes

If you would like to conduct this workshop in Japanese, please use the Japanese version.

日本語で、本ワークショップを実施されたい方は、、日本語版をご利用ください。Thanks for the contribution from @yoshioterada.