r/SpringBoot • • Aug 21 '24

Want to deploy my first Spring Boot app with MySQL database. Need some guidelines

Hey folks. So me and a partner of mine built our first Spring Boot app. It's a farming management system with CRUD, authentication, and other features. We want to deploy it to the cloud. But we're not sure where to go from here.

Since this is just a hobby project, I want the initial cost to be minimal if not free. We don't have any plan to bring this to production. Just want to test it by hosting online.

I've done some quick internet searches. Some platforms, like Google Cloud, offer free trials. But it requires a Credit Card which none of us have, unfortunately (oof). Any other good alternative that has a free tier or trial? At least for a month? And perhaps easy to use?

Thanks a lot

28 Upvotes

20 comments sorted by

4

u/MiserableBoss Aug 21 '24

You need to have a credit card. Don't worry It won't charge. Even you can use prepaid card

2

u/rustybladez23 Aug 21 '24

It declined my debit card. Probably didn't meet their criteria

1

u/MiserableBoss Aug 21 '24

Might be.

Does your card work with Amazon?

3

u/MiserableBoss Aug 21 '24

Digital Ocean droplets are also good choice

2

u/LeChronnoisseur Aug 21 '24

Second this. I always start my projects here, you can get a lot for cheap and no surprise costs. I love Digital Ocean

2

u/LouGarret76 Aug 21 '24

Self hosting or buying a vps is the cheaper solution

2

u/JBraddockm Aug 21 '24

Railway has a free tier if you get verified with your GitHub account. It doesn't require credit cards.

2

u/Iconic_gymnast Aug 21 '24

Render.com have free plan for deploy + free postgeresql. Try it

2

u/Putin_Badmaash Jan 01 '25

Hey, I am plannin to use render for springboot deployment, vercel for frontend(REACT js) but where can I deploy mysql database ?

1

u/xavier8321 Aug 23 '24

I definitely recommend render.com, only drawback is server goes to sleep after 15min of inactivity which enough for testing. Also, checkout cockroachlabs, they provide 10GB of free Postgres DB and 2GB of Redis (not exactly sure about the redis size).

2

u/Exciting-Rest-395 Aug 22 '24

Aws used to provide a micro instance free for 1 year. Not sure if it still does. You can check Azure as well, they too will provide something free.

1

u/pupperenola Aug 24 '24

AWS still provides 1 year free micro instance

2

u/Dangerous_Word_1608 Aug 21 '24

two weeks ago, I was facing the same problem with the same technos,

what I've done, I change to express js crud / firebase data base ( you can host on firebase for free your front part if you are dealing with any front app angular, react....) and vercel for deploying my express js crud app, I'm working now for free, hosted api and hosted front app and every thing is going on well with no cost, in the other hand if you insist on working with springboot and mysql you have to work with a cloud provider which all not free;

1

u/sravanank Aug 22 '24

You can try oracle cloud. They have lot of options in free tier

1

u/cricblaster Aug 22 '24

if you are in college apply for github student program you'll get azure for free search on google for more details