Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite web app views to use API calls #24

Closed
rhsimplex opened this issue Jun 26, 2017 · 1 comment · Fixed by #41
Closed

Rewrite web app views to use API calls #24

rhsimplex opened this issue Jun 26, 2017 · 1 comment · Fixed by #41

Comments

@rhsimplex
Copy link
Contributor

Following the merge of #18, we can now vastly simplify the web application (and testing) by making sure we use the proper API routes. Also should follow #23

@jan-xyz
Copy link
Contributor

jan-xyz commented Jul 26, 2017

I would suggest to use a library like requests to consume the API and afterwards validate the data and feed it into the template. How does that sound?

EDIT: I actually want to withdraw my previous proposal. By working on dividing web front and and api into separate modules I was thinking about a better approach. The front-end needs JavaScript anyways to handle the different types of visualisers dynamically. With that I would suggest using JQuery. I don't have any experience with it yet but I think I can get this fairly simple project going with it. For a bit of insight see: http://flask.pocoo.org/docs/0.12/patterns/jquery/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants