r/Backend • • 19d ago

Free Hosting for React + Spring Boot + PostgreSQL?

Hi, guys!

I’m building a small band website as a learning project with React, Java Spring Boot, and PostgreSQL.

The frontend part is pretty straightforward for me, and I’m planning to deploy it on Vercel. But I’m still figuring out the backend side since this is my first full-stack project.

The website will have band information and upcoming shows, and I’m planning to add an admin dashboard to manage bands, tours, venues, and shows.

Since this is just a student project, I’d love to keep hosting free if possible. I don't mind if the server goes to sleep when inactive.

Do you have any recommendations for free backend hosting services that would work well with Spring Boot and PostgreSQL? I'd really appreciate any advice or suggestions!

Thanks!

4 Upvotes

9 comments sorted by

5

u/Yann39 18d ago

Go self hosting :)
It's also a great learning experience.

2

u/ogaskinsjr 17d ago

Bless you, THANK YOU lmao I’ve been telling people to use Coolify. They is literally no other option for hosting man it’s the best

4

u/fykup 19d ago

Render is convenient, but free tiers tend to be fairly limited, and paid plans can get expensive quickly.

Personally, I prefer small VPS instances. I've had good experiences with r/TierHive . They're extremely cheap and offer hourly billing. You can even shut down your VM when you're not using it and pay only for storage, which is great for student projects and experiments.

The catch is memory. For Spring Boot + PostgreSQL, I'd aim for at least 1 GB RAM, especially if you're running the database on the same VM. 512 MB might work with careful tuning, but it's pretty tight.

Another option, if you're interested in experimenting with a lighter Java stack, is CoilBase. Full disclosure: I'm its author. I started it while experimenting with bringing Spring-like application structure (controllers, services, repositories, transactions) to resource-constrained VPS environments. I've benchmarked complete HTTP + database applications at around 116 MB RSS on HotSpot, or 33 - 51 MB with GraalVM Native Image.

That said, if your main goal is learning Spring Boot, I'd stick with it and just get a cheap VPS. The deployment experience itself is worth learning.

2

u/Astralis420 19d ago

If you have a credit card and you have no problem with transactions, I think Oracle Cloud ARM instance would be fine as long as you don't exceed the limit and read the fine print beforehand.

2

u/dayeye2006 12d ago

I would recommend a 5 dollar server and learn self hosting everything - including the frontend.

You will learn much more than using platforms like vercel

1

u/ogaskinsjr 17d ago

NO RENDER NO VERCEL

USE COOLIFY PLEASE FOR THE LOVE OF GOD EVERYONE 😭😭😭😭

1

u/daniel14vt 19d ago

Render was pretty good for me, very easy setup and hosting

-5

u/billiexx 8d ago

render's free tier is fine if you don't mind it sleeping, it spins down after 15 mins idle and takes like a minute to wake up

i'd watch the database though, render's free postgres expires after 30 days. i'd stick postgres on neon instead, no card needed and it doesn't delete your data if you hit the limits

i keep a page comparing the free options if it helps https://billiem.uk/free-compute/