r/SpringBoot • • Oct 10 '24

Where do I host SpringBoot backend for personal projects?

The title.
Any suggestions? Are there any free ones which allow no limit to no. of days?

34 Upvotes

47 comments sorted by

12

u/mindhaq Oct 10 '24

A VPS is the way to go, but will require at least some basic Linux admin skills.

1

u/hustler0217 Oct 10 '24

Sure. Thanks for the suggestion.

1

u/[deleted] Oct 10 '24

Is it for free?

2

u/mindhaq Oct 10 '24

Ab, I missed the free part. No idea where to get a free server.

2

u/Mintakastar Oct 11 '24

vpsdime.com has a Linux VPS for 7 dlls per month

8

u/DDDECAR Oct 10 '24

You can also try hetzner

1

u/hustler0217 Oct 10 '24

Sure. Thanks for the suggestion.

6

u/ManavalanFromDufai Oct 10 '24

Oracle Cloud has a free tier VPS.

1

u/hustler0217 Oct 10 '24

I will check this out. Thanks.

1

u/Mintakastar Oct 11 '24

This is a great free option, I use one for MetaBase

4

u/moai Oct 10 '24

Digitalocean

2

u/hustler0217 Oct 10 '24

Thanks. Will check this out.

3

u/MoreCowbellMofo Oct 10 '24

I tried was with an ecs cluster to run the front and back end but also a db. It’s costing me $50/month because of the vpc just for the database to remain up. Wouldn’t recommend.. I’m tempted to start over

1

u/hustler0217 Oct 10 '24

Oh that's bad.
Mine is a basic app with simple CRUDs. Will that involve too much operation costs? No right?

1

u/MoreCowbellMofo Oct 10 '24 edited Oct 10 '24

There’s a command line utility you can download to get a cost for your deployment. I forget its name but screen shot stuff like that so will dig it out.

My app is simple. The problem is if you want to set up a proper deployment that will scale easily it costs a decent amount despite not really utilising it

Edit: just checked and I don’t have it. Will look later as I probably liked a comment somewhere

1

u/CobyBoy_x Oct 12 '24

Aren't you using the free tier?

1

u/MoreCowbellMofo Oct 12 '24

Yes, but I think it’s only free for the first 750hours or something which is abt 1 month

3

u/Fryclaw Oct 10 '24

Digital Ocean worked for me

2

u/hustler0217 Oct 10 '24

Thanks. Will check this out.

8

u/notTorvalds Oct 10 '24

AWS offers 1 year free access to many of it's services, EC2 included.

15

u/[deleted] Oct 10 '24

Agree, but for a beginner asking this question, it’s so easy to get aws wrong and then you end up with an unexpected bill.

I’d recommend buying a vps from digital ocean, some can be as cheap as 5$ and then using nginx and docker to host the applications.

Keep using that cheap instance until you need more

0

u/hustler0217 Oct 10 '24

Thanks.
There is an option to select 'Free Tier' in AWS RDS for database.
Then, I need to set up the EC2 for the SB app. Am I right?

2

u/[deleted] Oct 10 '24

Essentially yes, create db. Lookup videos on deploying spring boot apps to ec2.

but the only reason why I suggest against AWS is it’s easy to get caught in fees when you don’t know what you’re doing, and don’t read the usage limits very carefully

1

u/hustler0217 Oct 10 '24

Oh, I see. Thanks a lot, and will keep this in mind.

2

u/Johnny_TheOne Oct 10 '24

Try Render

1

u/hustler0217 Oct 10 '24

Thanks. Will check this out.

2

u/irequirec0ffee Oct 10 '24

Railway

1

u/hustler0217 Oct 10 '24

Thanks. Will check this out.

2

u/qxtno Oct 10 '24

I used to use northflank with supabase, it's not much, but it is free credit card required for northflank unfortunately).

1

u/hustler0217 Oct 10 '24

Thanks. Will check this out.

2

u/alphakyuuu Oct 10 '24

You can try heroku i think

2

u/Then-Boat8912 Oct 10 '24

Try AWS Lightsail for VPS and Supabase for Postgres database.

2

u/Bravesquintz Oct 10 '24

I use GCP cloud run integrated with GitHub actions to auto build and deploy on merges to main. took very little time to set up and works like a charm

1

u/Mintakastar Oct 11 '24

Do you know any tutorial for this ?

1

u/Historical_Ad4384 Oct 10 '24

Better to get a static IP from your ISP and host it on your home network

1

u/polacy_do_pracy Oct 10 '24

if you are a student you can check out some free tiers https://education.github.com/pack

1

u/Media_Dunce Oct 10 '24

I'm an Azure guy. You can configure an Azure App Service to run your applications (use the F1 tier Service Plan for free use). The only real limit is that it will turn off automatically after 5 minutes of inactivity (and no Virtual Network access)

1

u/Voldsman Oct 13 '24

Digitalocean or contabo

2

u/[deleted] Oct 10 '24

[removed] — view removed comment

1

u/hustler0217 Oct 10 '24

I need to run free microservice instances and DB. Isn't Heroku paid?
Anyway, thanks for the response.