Skip to content
Snippets Groups Projects
user avatar
Marco Malavolti authored
43b9cd4c
History

HOWTO Install and Configure ECCS-2

  • sudo apt install python3 python3-pip chromium chromium-l10n git libapache2-mod-wsgi python3-dev
  • python3 -m pip install --user --upgrade pip virtualenv
  • python3 -m venv eccs2venv
  • source eccs2venv/bin/activate (deactivate to exit Virtualenv)
    • python3 -m pip install --upgrade wheel setuptools certifi selenium urllib3 flask flask-jsonpify flask-restful
    • cd ~ ; git clone https://github.com/malavolti/eccs2.git
    • cd eccs2
    • cp eccs2properties.py.template eccs2properties.py (and change it with your needs)
    • ./runEccs2.py

API Development Server

  • sudo apt install libapache2-mod-wsgi-py3 python3-dev
  • sudo a2enmod wsgi
  • cd ~/eccs2 ; ./api.py

API

  • /eccs/test (Trivial Test)
  • /eccs/checks (Return the results of the last checks)
  • /eccs/checks?<parameter>=<value>:
    • date=2020-02-20 (select date)
    • idp=Any%20words%20do%20you%20like%20url%20encoded
    • status=
      • 'OK'
      • 'TIMEOUT'
      • 'No-eduGAIN-Metadata'
      • 'Form-Invalid'
      • 'Excluded'
  • /eccs/eccsresults (Return the results of the last check ready for ECCS Gui)