sfbrigade / datasci-earthquake

MIT License
0 stars 2 forks source link

Configure FastAPI with PostgreSQL and SQLAlchemy #22

Open mackcooper1408 opened 5 days ago

mackcooper1408 commented 5 days ago

Context

We have our main app skeleton, but need to begin building infrastructure to tie in a database

Definition of Done

  1. SQLAlchemy is installed and requirements.txt is updated
  2. new db.py (or database.py) file is created with initial configuration to link SQLAlchemy with a localhost postgresql database

*note that the SQLAlchemy models and Pydantic Schema will all be completed in future issues and that we will be using Alembic for migrations, so no need to have those parts setup in this issue

Engineering Details