Skip to content
Snippets Groups Projects
David Beniamine's avatar
David Beniamine authored
Update Readme.md

See merge request !1
e96b0c41
History

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

  1. Optionnal create a virtual env :

    • virtualenv venv && . venv/bin/activate
    • OR python3 -m venv venv && . venv/bin/activate
  2. Install dependencies pip install -e .

  3. cp .env.sample .env and edit .env file to suit your needs

  4. Run flask --debug --app Mirador_backend.app run

  5. Go to http://localhost:5000/mirador_resource

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