README.md 1.12 KB
Newer Older
Marco Malavolti's avatar
Marco Malavolti committed
1
2
# HOWTO Install and Configure ECCS-2

Marco Malavolti's avatar
Marco Malavolti committed
3
* `sudo apt install python3 python3-pip chromium chromium-l10n git libapache2-mod-wsgi python3-dev`
Marco Malavolti's avatar
Marco Malavolti committed
4
5
* `python3 -m pip install --user --upgrade pip virtualenv`
* `python3 -m venv eccs2venv`
6
* `source eccs2venv/bin/activate`   (`deactivate` to exit Virtualenv)
Marco Malavolti's avatar
Marco Malavolti committed
7
8
  * `python3 -m pip install --upgrade wheel setuptools certifi selenium urllib3 flask flask-jsonpify flask-restful`
  * `cd ~ ; git clone https://github.com/malavolti/eccs2.git`
9
10
11
  * `cd eccs2`
  * `cp eccs2properties.py.template eccs2properties.py` (and change it with your needs)
  * `./runEccs2.py`
Marco Malavolti's avatar
Marco Malavolti committed
12

13
14
15
16
17
18
# API Development Server

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

19
20
21
# API

* `/eccs/test` (Trivial Test)
Marco Malavolti's avatar
Marco Malavolti committed
22
* `/eccs/checks` (Return the results of the last checks)
23
24
25
26
27
28
29
30
31
* `/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'
Marco Malavolti's avatar
Marco Malavolti committed
32
* /eccs/eccsresults (Return the results of the last check ready for ECCS Gui)
33
34