Hey everyone! I'm trying to create a simple web application using Python, but I have a few questions about how to get it running as a Minimum Viable Product (MVP). I'm not familiar with Angular JS or JavaScript. Here are a few specific things I'm unsure about:
1. What frontend technology should I use?
2. What backend framework would be best for this?
3. How many components do I need to successfully run a Python app on a website? Any insights would be really appreciated!
5 Answers
For a basic app, you can set up a Python server using Flask with templates for your web pages. It's pretty straightforward and allows you to get things running quickly. There are plenty of tutorials out there to guide you through the process!
You can definitely use Python for the backend with options like Flask, Django, or FastAPI for creating your routes. For the frontend, anything goes—Tailwind, regular HTML/CSS, or whatever else you're comfortable with! Just remember, deploying your app can be done on platforms like Vercel or Render, which support Python backends. Locally, you don't need much to start.
If your app is really simple, FastAPI could work perfectly. If it gets a bit more complex, Django is a solid choice. For the frontend, just go with something you know. I usually keep it simple with plain JavaScript, HTML, and CSS. As for components, if you mean essential parts, think backend in Python, frontend choice, and where you're hosting it. Some hosting services handle the web server part for you!
Exactly! Keeping things simple at the start is key. If you're not making a Single Page Application (SPA), you might not even need all the fancy APIs; a classic approach could serve you well!
If you want to go with the backend, I'd suggest FastAPI. It's modern and efficient, plus if you're already comfortable with Python, picking up frontend development will be your main challenge. Don't overthink it!
Start with plain HTML, CSS, and only add JavaScript as needed. When you're comfortable, explore JavaScript frameworks. As for the backend, I recommend looking into Django or Flask, and consider FastAPI once you dive into more complex web apps. For components, you basically need a database, your Python app, and that's about it for a basic setup!
Totally agree! Flask is a great choice for starters, and it really simplifies the whole web app creation process. Just make sure not to rely solely on AI to generate your code; try to learn by doing! It'll be more beneficial in the long run.