I'm familiar with developing programs in Java and Python, and I can build web pages using HTML, CSS, and JavaScript. However, I'm struggling to figure out how to connect my HTML front end with my backend in Java or Python. I've tried searching videos on YouTube but mostly end up with explanations that focus entirely on either front end or back end. My goal is to create a banking application with features like withdrawing and depositing money. Can anyone give me some pointers?
1 Answer
You have a few options to connect your frontend with your backend. One popular way is to use Flask, a lightweight web framework for Python. It allows you to serve HTML and handle routes effectively. You'll be able to use a template engine like Jinja2 for dynamic HTML. If your goal is to create a banking app, Flask would help you expose endpoints that are essential for your application.
So, if I use Flask, does that mean I can’t just write regular Python? I have to set up something special to connect it to HTML?