Hello people =)
This app is designed to export data from Punk API, transform it and load into DWH for further analysis.
It runs in containers using Docker Compose. In order to launch it on your machine, please install the following soft:
- landing layer: data from the API is exported into
/object_storagefolder as JSONL file - raw data layer: json data is parsed and inserted into DWH. it's now available for querying
- core layer: raw data is organized into simple model
- data mart layer: aggregated views are created on top of core data
- open CMD/Terminal inside the root folder
/BEER_FFS - run
docker-compose up airflow-initto initialize Airflow - after init finished run
docker-compose up -d - PROFIT (wait 1-3 mins before everything is ready. run
docker psfor more info) - open airflow-webserver page localhost
- login using username: airflow password: airflow
- open the only dag and turn it on (also check Graph section for the pipeline lineage)
- that's it. the data should already be in the DWH
- using DB viewer(Dbeaver for example) of your choice connect to postgres:
host: localhost port: 54320 database: BEER username: hotdog password: ketchup - query freshly created views