This is a attempt to wrap a ancient invision power board into a RESTful web api to build more modern clients for it.
-
Clone the repo
git clone [email protected]:janLo/exma-api.git
-
create/activate a virtualenv:
virtualenv </some/path> . </some/path>/bin/activate
-
install requirenments:
pip install requirenments.txt
-
create a file containing the db password in the project root:
echo "password" > exma_pw
-
build a tunnel to the database:
ssh -L 3306:localhost:3306 <mysql_host>
-
mount the images:
sshfs user@host:<path_to_pictures> /mnt/tmp
-
start the server:
python exma-api.py
-
enjoy!
There are two settings in exma-api.py:
- user_ressources.debug
- app.debug
The first enables or disables the debug mode for the auth stuff (if disables its possible to test without auth at all!) The second enables the flask debug mode with its debug features:
- automatic reloading on script change
- enable the werkzeug debugger on exceptions