Mirador backend
Get the project
git clone gitlab@gitlab.tetras-libre.fr:iiif/backend.git && cd backend
Install and run
local
Requirements
- virtualenv (optionnal)
- Python >= 3.10
Dev mode
-
Optionnal create a virtual env :
virtualenv venv && . venv/bin/activate
- OR
python3 -m venv venv && . venv/bin/activate
-
Install dependencies
pip install -e .
-
cp .env.sample .env
and edit.env
file to suit your needs -
Run
flask --debug --app Mirador_backend.app run
Production mode
TODO
Production mode
TODO
Docker
Requirements
Install and run
cp .env.sample .env
# Edit .env file to suit your needs
docker-compose up
Go to http://localhost:5000/mirador_resource
Test
docker-compose exec flask python -m unittest