Alembic assumes that a postgresql socket is running
# backend/alembic/env.py
postgres_socket_dir = os.path.join(os.environ["DEVENV_STATE"], "postgres")
dev_sqlalchemy_url = f"postgresql+psycopg2://postgres:postgres@/backend?host={postgres_socket_dir}"
config.set_main_option("sqlalchemy.url", dev_sqlalchemy_url)
Run migrations with alembic:
poetry install
cd backend
poetry run alembic upgrade head
poetry run start
cd frontend
npm i
npm run dev