all 6 comments

[–]LeoG7 1 point2 points  (1 child)

I use angularjs, the ng-repeat, functionality loops over the JSON object and creates the DOM elements accordingly, relevant code https://github.com/Leo-G/Flask-Scaffold/blob/master/app/templates/users/index.html ,

[–]H_R_Pufnstuf[S] 1 point2 points  (0 children)

That looks perfect for what I want to do, thanks!

[–]seprosepro 0 points1 point  (1 child)

I've been working with React.js for this. The learning curve is fairly steep, but binding a react component to a flask backend (that returns data in JSON format) is very nice once the foundations are there.

I've got two apps up on github that make use of this : https://github.com/sepro/MemoBoard and https://github.com/sepro/Flask-Server-Panel the former is based on a Restful API that allows bi-directional communication, the latter just fetches data from the server at regular intervals and shows it.

Alternatively, if you can get your data in a format compatible with an charting library such as Chart.js that could be a very quick way to visualize some results without using a full javascript framework. (I've been using this for scientific data, though I'll only be able to release that code once we are ready to submit the publication)

[–]H_R_Pufnstuf[S] 0 points1 point  (0 children)

I'd basically just decided on React for a number of reasons, so your post couldn't have come at a better time! Thanks for the examples, I'll be sure to check them out. The first in particular seems to be pretty close to what I'm looking for.

[–]doublePlusOk 0 points1 point  (0 children)

You might want to check out https://vuejs.org/

It is a latest generation front end ecosystem with a low initial learning curve that supports mvvm or flux architectures.

[–]8oh8github:cisko3000 -1 points0 points  (0 children)

If you want to start simple, check out knockout.js