I'm new to Flask and frontend javascript frameworks and trying to build nice REST site which will not reload every user click. I now a little bit of jQuery. What is the best javascript framework suited for Flask?
You will need HTML to make a Flask-based website. You don't strictly need CSS or JavaScript, but you'll very, very likely want to use the former and, depending what you need your site to do, you'll likely use the latter, too. You can accommodate CSS and JS files as 'static' files in your Flask build.
Django and Flask are both free, open source, Python-based web frameworks designed for building web applications.
FastAPI surpasses Flask in terms of performance, and it is one of the fastest Python web frameworks. Only Starlette and Uvicorn are faster. Because of ASGI, FastAPI supports concurrency and asynchronous code by declaring the endpoints. For concurrent programming, Python 3.4 introduced Async I/O.
Flask is a microframework, intended for wide use of extensions (see the list for most known). And also it's JavaScript-agnostic. So you can use any js-framework you want.
jQuery is good and well-known. I would recommend jQuery + Backbone.js for AJAX/REST web applications. Works nice with Flask.
Backbone.js is also well-known and uses RESTful interfaces by default. But it's main purpose is to help you implementing web apps using MVC (model-veiw-controller) approach on client side. MVC approach is mandatory for complex, feature-reach applications, and gives you supportability and code readability.
I thing this will be best choice for you. (similar frameworks exist of course)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With