Skip to content

masamallow/fastapi-postgres-playgroud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI with PostgreSQL Playground

Develop an application using FastAPI and PostgreSQL, following the web article.

Reference

Environment & Tool

Docker Build

pipenv lock -r > backend/requirements.txt

docker compose up -d --build

# attach server
docker compose exec server /bin/sh

# connect DB
docker compose exec db psql -h localhost -U postgres --dbname=postgres

Migration

ref. Welcome to Alembic’s documentation! — Alembic 1.7.6 documentation

docker compose exec server /bin/sh

### internal container
# create ddl script from template
alembic revision -m "create_first_tables"
# [!] executed as root

# upgrade
alembic upgrade head

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published