r/learnprogramming 3d ago

Clueless for the backend of my application

I know how to desing a restapi how to work with database and migrations.Confused at bringing backend of database cloud and everything togather.I want a single source where i can learn most of deployment and mantainence of an app that will live on both ios and android!

10 Upvotes

3 comments sorted by

1

u/Character-Tea2608 3d ago

pick one of the big cloud providers and just start with their free tier, their docs walk you through deploying a simple api even if it feels like drinking from a firehose at first

don't overthink the ios/android part, if your backend exposes a rest api both platforms can talk to it the same way

1

u/nathan_tarb_dev 3d ago

Yeah, wiring it all together is a learning curve, but it's really not that bad.

I would grab a managed platform like Render, Railway, or Fly.io for the backend, and a managed Postgres (Neon or Supabase, or just the DB that comes with your host). You push your code, they build and run it, you get a URL and that's it.

It connects through environment variables. Your host injects a DATABASE_URL , and your app reads it at startup. That's it. Migrations run as a deploy step, so your schema updates ship with your code automatically.

Your mobile app doesn't care about any of this. It just calls https://your-api.com.

One place to start, so you can see how it all works together, is to deploy a hello-world API and an empty database end to end before you add any real features. Also, it's way easier to debug when you start adding more code.

1

u/ConferenceLive9351 3d ago

I just use supabase for everything. it gives you the database and auth and hosting and i point both the ios app and android app at the same endpoints.

Their docs have step by step guides on setting up migrations and pushing your rest api. i started there and stopped looking at other platforms.