Challenge 1: Head in the cloud, feet on the ground

< Previous Challenge - Home - Next Challenge >

Introduction

The Spring Boot application uses JPA and supports both in memory databases as well as MySQL. In this challenge we’ll put our database on Azure while the code is running locally. Taking baby steps :)

Description

Create an Azure Database for MySQL and make sure that the application (which is still running locally) can connect to it without changing any code.

Success Criteria

  1. Verify the application is working by creating a new owner, a new pet and a new visit
  2. Connect to the database through a mysql client
  3. Verify that the tables include the newly created entities (owner/pet/visit)
  4. No files should be modified for this challenge

Tips

In order to find resources in Azure (existing or to be created) you can use the Search bar in the portal, look for the text bar at the top which you can activate by pressing the keys G and / at the same time.

Azure Cloud Shell includes a bunch of various tools, including a mysql client.

And note that you can also pass configuration information to Spring Boot through environment variables.

Learning Resources

Next Challenge - Azure App Services ❤️ Spring Boot >