alan-turing-institute / simulate

A web framework for research simulations.
http://simulate.readthedocs.io
MIT License
4 stars 1 forks source link

Refactor flask models to use blueprints #18

Open masonlr opened 6 years ago

masonlr commented 6 years ago

Goal

Blueprints allow for more separation between python code fragments and the API endpoints that they are wired to. If we decide later that a certain python fragment should be moved from, say, users to accounting, blueprints will make this easier.

Acceptance criteria

Out of scope

Implementation notes

masonlr commented 6 years ago

The blueprint and testing implementation of https://github.com/realpython/flask-jwt-auth looks solid. I would really like to deploy this to Azure, but cannot work out how to. I cannot determine the correct setting for WSGI_ALT_VIRTUALENV_HANDLER in the web.config file.