Skip to content
Snippets Groups Projects
Select Git revision
  • c797161d1f8c63390e26b37b0d4d8dc581d2513f
  • master default protected
  • dependency-injection
  • generic-api-v1
  • Debugger
  • swagger
6 results

backend

  • Clone with SSH
  • Clone with HTTPS
  • Anthony's avatar
    Anthony authored
    c797161d
    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