Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript framework for Flask [closed]

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?

like image 770
GeekDaddy Avatar asked Jul 23 '12 11:07

GeekDaddy


People also ask

Can JavaScript be used in 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.

Is Flask an open source framework?

Django and Flask are both free, open source, Python-based web frameworks designed for building web applications.

Is FastAPI better than Flask?

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.


1 Answers

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)

like image 187
Alex Lokk Avatar answered Sep 18 '22 13:09

Alex Lokk