r/AskProgramming • u/SoilEducational420 • May 09 '26
I’m trying to deploy my full stack project for free just to learn and get it off localhost 😭
I’m honestly confused about deployment and just want my project to stop living only on localhost 😭
Right now I have:
- frontend
- backend
- database
Main things I want to understand:
- Best FREE hosting options for frontend, backend, and database?
- Which free tiers are actually usable and not super limited?
- Can backend + database be deployed together for free?
- how do i connect frontend and backend if they are hosted on different servers lets say vercel and render respectively
Would really appreciate beginner-friendly suggestions.
0
Upvotes
6
u/UnbeliebteMeinung May 09 '26
Oracle has some free small vms
1
u/bonir_hunter May 09 '26
how long are you trying to host for? what traffic do you expect to see? could you host on your own computer? is the purpose academic, to make money, for the resume, etc?
2
u/why_so_sergious May 09 '26
supabase has an amazing free tier.
and just like github pages you will get a domain in the form of
your-project.supabase.cobut if you want to do everything from scratch (which I reccommend)
do google cloud console. with your gmail you get a three month $300 dollar credit for which you can spin up a vm. and you'll be able to see your project with the vm's ip.
unfortunately, there are virtually no completely free cloud hosting solutions. Google Cloud, AWS have some forever free with huge asterisks (like traffic per month). for Oracle you need to be lucky to spin up your vm as there's a limited pool of forever free ones.
2
u/Educational-Paper-75 May 09 '26
You could host it on a raspberry pi.
2
u/Medical-Aerie9957 May 09 '26
It will cost you there is no free hosting, for static frontend sure but for backend nope
1
u/HaikusfromBuddha May 09 '26
back in the day google had this thing firestore or something like that but it offered hosting you would need to buy your own domain. Also Github has a free hosting option as well.
1
u/Moby1029 May 09 '26
I have a cpl of projects with the front deployed to vercel, the back on Render, and MongoDB for the database. All free.
1
u/TheFitnessGuroo May 09 '26 edited May 09 '26
Render gives you 700 hours of free hosting but spins down after 10 or 15 mins and if you need a db + server your service will only be active for the first half of every month (you can serve your frontend from your server as static from a monorepo if you don't want to host it separately). Railway gives you $5 credit with no spin down. After that, it's only $5 for hobby plan per month + any usage beyond the $5 allowed usage. Super easy to deploy and provides you with automated CI/CD and load balancing among other services. Edit: didn't realize the separate server client part. You just set your client api layer requests to your server address and set your server cors config to allow your client address to send reqs to it.
1
u/434f4445 May 10 '26
If you want free, you host it internally and then have a lab setup. Otherwise hosting costs money because you’re using power, compute and bandwidth which all costs them money.
1
u/Cdream-2018 May 11 '26
Create a tcp or http listener on your server port. You don’t need hosting. Just use a dedicated computer. How good is your logic defense is the question.
Your backend handle concurrency ?
1
u/robincS2920RP May 11 '26
Vercel is free for a long time, unless you're starting to have massive traffic. Railway is very easy to set up, and you have 1 month free, then 5 dollars a month. And I'm sure there are many others! Don't forget to push your code to GitHub; it all starts from there.
1
u/jerrygreenest1 May 09 '26
Your own physical machine server. (Not desktop computer)
4
u/[deleted] May 09 '26
[removed] — view removed comment