-
Clone the repository with the following command
git clone https://github.com/klepper24/WarsawPublicTransport.git GIT
-
Install Docker
-
Run
docker-compose up airflow-init
to initialize environment -
Start all services with
docker-compose up -d
command -
Open webserver which is available at http://localhost:8080
login: airflow
password: airflow
-
Configure
api_key
variable:- In order to get
api_key
go to this page https://api.um.warszawa.pl -> Logowanie -> Rejestracja konta and fill out the form
- In order to get
-
Configure connections
-
Turn on relevant DAGs
- Create local virtual envirtonment
python3.8 -m venv venv source venv/bin/activate
- Install poetry (Instalation guide)
curl -sSL https://install.python-poetry.org | python3 - poetry install
- Install dependencies locally
pip install cryptography==36.0.2
poetry install
To stop and delete containers, delete volumes with database data and download images, run docker-compose down --volumes --rmi all
tox -e flake8
tox -e pylint