Repository to learn stuff about data
👏 Shout out to https://github.com/tiangolo/full-stack-fastapi-postgresql
- Install docker
- Install docker-compose
This will spin up all the services required to run:
-
Postgres DB (including PGAdmin) @ localhost:5050
-
FastAPI back-end (including Jupyter Notebook)
-
Swagger UI for API @ localhost:80/docs
-
Front-end for app user management @ localhost:80
-
Celery for task management with flower @ localhost:5555
-
Traefik for traffic monitoring @ localhost:8090
In the same tab terminal:
cd data-academy-app
docker-compose up
Open another terminal:
cd data-academy-app
docker-compose exec backend bash
poetry add
python_dependency
Open another terminal:
cd data-academy-app
docker-compose exec backend bash
$JUPYTER
- open the Jupyter link and check the SQL_workbench notebook
cd data-academy-app
docker-compose exec backend bash
$JUPYTER
- open the Jupyter link and check the how_to_draw_world_map notebook
- the html is available at /jupyter_notebooks
cd data-academy-app
docker-compose exec backend bash
cd app
python py_scripts/export_world_map.py
- the html is available at /app/exports