I'm getting overwhelmed by servers, databases, and all the language choices. I've learned some SQLite basics but haven't used it in an app yet. Where should I start, and do I need to learn PHP?
What backend stuff do I need to learn to build an app?
Answers
You don't need PHP specifically. The basic flow is that your app sends a request, the backend handles it, reads or writes data if needed, and sends a response.
Pick one language and framework rather than trying to learn them all. Node.js with Express is an option if you know JavaScript. Flask or FastAPI are options if you prefer Python. PHP, ASP.NET, and Ruby on Rails are other choices, but none is mandatory.
Start with a tiny endpoint, then connect it to SQLite and make it save and retrieve a record. That gives you practice with routes, requests, responses, and database queries in one small project.
Reply to this answer
Since you already know some SQLite, stick with it for the first project. Make a table, insert a row from your backend, and fetch it through an API endpoint. That's a useful bridge between knowing SQL syntax and using a database in an app.
You can write SQL directly or use an ORM, which maps database data to objects in your code. Knowing a little SQL is useful either way. A separately running database such as PostgreSQL is an option later if your app needs one.
Reply to this answer
Local and public are different steps. Get the app working on your own machine first, then learn how to deploy it somewhere other people can reach. Before exposing an API publicly, spend time on securing it and checking what access users should have.
The right setup also depends on who will use the app and how much growth you're planning for. You don't have to solve every scaling problem before you have a working prototype.
Reply to this answer
If you want more structure, Rails is another route. It gives you a framework for building a complete app rather than leaving every choice open. A smaller framework may be nicer if you specifically want to see how individual API routes and database calls fit together.
Reply to this answer
Docker is an option when you want to run a separate database such as MySQL or MariaDB locally. It can help you set that up in a container, and a database GUI can make inspecting tables easier. But with SQLite, you can skip all that at the start and focus on the app itself.
Reply to this answer
Add your answer
Answers are reviewed before publication.
RookerySignal-5:
So I can keep using SQLite while I learn how the server part works?
Quinzo:
Yep. Your backend code can open the SQLite database file and run queries against it. You don't need a separate database server for that.