- JDK 11 or OpenJDK 11.
-
Download and install JDK 11 or OpenJDK 11 (or newer versions)
-
Download and install Maven 3.x
-
Clone the repository:
git clone https://github.com/iliedorobat/QoLI-Framework.git
- Update environment variables and app constants:
AUTH_USER
andAUTH_PASSWORD
: credentials used for updating the datasets (calling/api/v2/stats/collect
API)HOST_ADDRESS
: the IP address of the hostIS_PRODUCTION
:true
if the app is deployed on the production serverIS_TESTING
:true
for downloading sample data instead of the full setKEY_STORE_FILE
: path to thekeystore.p12
fileKEY_STORE_PASS
: password for thekeystore.p12
fileUSE_TOMCAT_SERVER
:true
if the app is deployed on Apache TomcatConstants.BASE_PATH
contains the main path to the project. This path should be updated if the app is deployed on the production server.
-
[OPTIONAL] Run the following scripts on the production environment:
- Create JKS certificate:
src/main/bash/certbot_post_renewal_hook.sh
- Enroll renewal hook to certbot:
src/main/bash/certbot_enroll_renewal_hook.sh
- Copy the startup script:
src/main/bash/elife_enroll_startup.sh
-
[OPTIONAL] Install deps & compile the project (this step is already done in the next step):
- Production build:
./gradlew clean build && ./gradlew copyProd
- Dev build:
./gradlew clean build
-
Create the server daemon:
- [OPTIONAL] Remove the server daemon:
pm2 flush elife && pm2 delete elife
- Create and start a background process:
pm2 start ~/workplace/automation/elife_startup.sh --name=elife
- Check if the server is up and running:
curl -i -X GET "https://webdata.ro:8443"
curl -i -X GET "https://webdata.ro:8443/qoli/api/v2/stats/config?analysisType=aggregate"
curl -i -X GET "https://webdata.ro:8443/qoli/api/v2/stats?analysisType=individually&aggr=education:dropoutRatio&startYear=2020&endYear=2022"
curl -i -X GET "https://webdata.ro:8443/qoli/api/v2/stats?analysisType=aggregate&aggr=education:dropoutRatio&aggr=health:health:bodyMassIndex&startYear=2020&endYear=2022"
curl -i -X GET "https://webdata.ro:8443/qoli/api/v2/stats/collect?username=admin&password=admin1234"
-
Collect the datasets:
java -jar elife.jar --collect
- Aggregate the datasets:
- Calculate QoLI dimensions:
java -jar elife.jar --calculate --calculateIndicators --direction=COLUMN
- Calculate QoLI based on a specific set of indicators:
java -jar elife.jar --calculate --aggr=["discussionRatio","gettingTogetherFrdRatio"]
- Print QoLI and QoLI dimensions:
java -jar elife.jar --print --direction=COLUMN --seriesType=COUNTRY --dimension=QOLI java -jar elife.jar --print --direction=COLUMN --seriesType=REGION --dimension=QOLI
- Print specific indicators:
java -jar elife.jar --print --direction=COLUMN --seriesType=COUNTRY --dimension=EDUCATION --indicator=DIGITAL_SKILLS_RATIO java -jar elife.jar --print --direction=COLUMN --seriesType=REGION --dimension=EDUCATION --indicator=DIGITAL_SKILLS_RATIO
- List of dimensions:
- List of indicators:
- Economic and Physical Safety: SafetyAggrParams.AGGR_PARAMS
- Education: EducationAggrParams.AGGR_PARAMS
- Governance and Basic Rights: GovRightsAggrParams.AGGR_PARAMS
- Health: HealthAggrParams.AGGR_PARAMS
- Leisure and Social Interactions: LeisureInteractAggrParams.AGGR_PARAMS
- Material Living Conditions: MaterialLivingAggrParams.AGGR_PARAMS
- Natural and Living Environment: EnvironmentAggrParams.AGGR_PARAMS
- Overall Experience of Life: OverallExperienceAggrParams.AGGR_PARAMS
- Productive or Main Activity: MainActivityAggrParams.AGGR_PARAMS
https://ec.europa.eu/eurostat/data/database
https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/ dataset_name?query_params
https://ec.europa.eu/eurostat/databrowser/view/ dataset_name /default/table?lang=en
SYSMEA 2019: eLIF: European Life Index Framework - An Analysis for the Case of European Union Countries
@InProceedings{sysmea_v12_n34_2019_5,
author="Dorobat, Ilie Cristian and Posea, Vlad",
title="eLIF: European Life Index Framework - An Analysis for the Case of European Union Countries",
booktitle="2019 International Journal On Advances in Systems and Measurements (SYSMEA)",
volume="12"
number="3-4"
year="2019",
publisher="IARIA",
pages="198-214",
issn="1942-261x"
}
ICDS 2019: Quality of Life Index Analysis for the Case of Romanian Regions
@InProceedings{icds_2019_2_30_10030,
author="Dorobat, Ilie Cristian, Rinciog, Octavian, Muraru, George Cristian and Posea, Vlad",
title="Quality of Life Index Analysis for the Case of Romanian Regions",
booktitle="2019 The Thirteenth International Conference on Digital Society and eGovernments (ICDS)",
year="2019",
publisher="IARIA",
pages="37-44",
isbn="978-1-61208-685-9"
issn="2308-3956"
}