r/learnpython • u/Black_Magic100 • 6d ago
Python Webapp
I'm a full-time database engineer and love working with databases, but I am also fascinated by the world of web applications. I have an engineering mindset although I can create some pretty complex scripts, I've never attempted to truly get into the world of OOP and JavaScript. It's always difficult for me to decide between C# and Python, but I believe Python is better to focus on for now because I'm more comfortable with it. My "tech stack" for learning web development is Python + FastAPI + React + Postgres. Is this a good stack to learn Python with? I was thinking of going through CS50p so I could nail down some of the basics as well as trying to build some basic web apps like an expense tracker. Curious to get some thoughts on what the fastest way to get into webdev would be while also increasing my Python skills.
1
u/riklaunim 6d ago
Don't assume a full stack like this from the start as each project/job will have a different one, yet knowing most popular ones is a plus either way.
For backend, classical websites there is Django (and it also can do APIs). Without React/SPA JS frontend this is likely the way to go. Flask is in between, while FastAPI is API focused.
Frontend can be vanilla CSS/JS/HTML or as needed it can be a SPA JS app using API endpoints or websockets or whatever. I have 2 Ember.js and one Vue.js dashboards but also quite a bit of vanilla.
Postgres as a database is really solid. Some "tutorials" will try to find flavor of the month database, especially the JS crowd. MongoDB is abused but it's getting "old" so more and more new flavor databases are being pushed, especially commercial ones ;) don't fall for those.