The application shows the health services waiting times in South Tyrol. It is possible to filter the different services.
The data are taken from the Open Data Alto Adige/Suedtirol/South Tyrol portal
In order to execute the application locally, you need Python 3.x, pip and gunicorn. If you want to create an isolated Python environment, you can install virtualenv
pip install virtualenv
You can find more information on how to install Python and on how to use pip and virtualenv here.
First, you should obtain a local copy of the repository with the following commands :
git clone https://github.com/abonte/southtyrolean-healthservices-waitingtimes.git healthservices-waitingtimes
cd healthservices-waitingtimes
Then, you can create an isolated Python environment with
virtualenv -p python3 healthservices-waitingtimes
source healthservices-waitingtimes/bin/activate
and install the dependencies that are required for the application to work
pip install -r requirements.txt
Finally, you can run the application with the following command
gunicorn app:app --log-file=-
The application is available on http://127.0.0.1:8000
For those who want set python3 as default environment system and install all libraries for the project:
cd /Script
chmod +x ubuntu.sh
sudo ./ubuntu.sh
At this repository https://github.com/carlonicolo/vagrant-healthservices-waitingtimes.git , is possible to download the Vagrant file and the script used by the Vagrant file in order automatically:
- download and install OS dependencies;
- set python3 as default environment;
- clone the project;
- open the port 8000;
- create a running script for the project.
pybabel extract -F babel.cfg -o messages.pot app
pybabel update -i messages.pot -d app/translations
Modifiy the file *.po in the directory of the language. For example: app/translations/de/LC_MESSAGES/messages.po
pybabel compile -d app/translations
This project is licensed under the MIT License - see the LICENSE.md file for details
Open Iconic — www.useiconic.com/open