Spring Boot
IndieCloud supports Spring Boot, a powerful framework for building Java applications. Below is a guide to help you get started with Spring Boot on IndieCloud.
Getting Started
Since most backend applications require some kind of persistence, this guide will assume you want to deploy your
1. Select your Template
We have prepared template repositories for Spring Boot. You can choose from the following:
- Spring Boot Template using Java 21, Spring Boot 3.4 and PostgreSQL
- Spring Boot Template using Java 21, Spring Boot 3.4 without Database
Of course, you can also create your own Spring Boot application from scratch or use an existing project. But then some IndieCloud magic might not work. Up to you! ¯\(ツ)/¯
2. Create a New Application
If you have already created a new application for your project, you can skip this step. Otherwise, follow the steps shown in Creating a New Application to create a new application.
3. Connect Your Repository
After you've created your application and you have the repository forked/cloned, you need to connect it to your application. You can do this by following the steps in Connecting Your Repository.
4. If your Application requires another Application
If your application requires another application, like a PostgreSQL, you can create a managed PostgreSQL database. You can do this by following the steps in Creating a managed PostgreSQL Database.
5. Deploy Your Application
Once everything is set up, you can check the Status of your application in the Application Overview.
If the Status is "Completed", your application is successfully deployed and you can access it via the provided URL.
If you used one of our templates, you will get a 404 Not Found error, because there is no content on the root path. Append "/hello" as this is the default endpoint for this template.
Troubleshooting
In case the Status is not "Completed", you can try to re-deploy by clicking the "Deploy" button. Also have a look at the build and app logs in the "Deployments" tab of your application if something went wrong.
Need Help?
If you need help with your Spring Boot application, feel free to join our Discord Server.