A simple app for extracting data from NHL public API to Postgres.
API message example: https://statsapi.web.nhl.com/api/v1/teams/21/stats
The endpoint reponse's data is of two main types: statsSingleSeason and regularSeasonStatRankings.
Thus, the data is stored in two tables: single_season_stats and regular_season_rankings.
-
Copy the repository
-
Run services
docker-compose up -d
-
Stop services
docker-compose down
Airflow: http://127.0.0.1:8080/
user: airflow
password: airflow
PGAdmin: http://127.0.0.1:5050/
Postgres (Main DB):
localhost, db:nhldb, user:pgadmin, password:pgadminpass, port:5432
Postgres (Airflow):
localhost, db:airflow, user:airflow, password:airflow, port:5434