├── .dockerignore ├── .env.example ├── .github └── workflows │ └── docker-image.yml ├── .gitignore ├── CITATION.cff ├── Dockerfile ├── README.md ├── alembic.ini ├── alembic ├── README ├── env.py ├── script.py.mako └── versions │ └── 6cdb431513de_first_migration.py ├── app.py ├── auth ├── deps.py └── jwt_handler.py ├── config ├── __init__.py └── config.py ├── database ├── __init__.py ├── dao │ ├── __init__.py │ ├── dao_posts.py │ └── dao_users.py └── database.py ├── db.dump ├── docker-compose.yml ├── img └── img.png ├── main.py ├── models ├── __init__.py ├── posts.py └── users.py ├── pyproject.toml ├── routes ├── __init__.py ├── posts.py └── users.py ├── schemas ├── posts.py └── users.py ├── tests ├── __init__.py ├── setup.py └── test_users.py └── uv.lock /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/.env.example -------------------------------------------------------------------------------- /.github/workflows/docker-image.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/.github/workflows/docker-image.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/.gitignore -------------------------------------------------------------------------------- /CITATION.cff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/CITATION.cff -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/README.md -------------------------------------------------------------------------------- /alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/alembic.ini -------------------------------------------------------------------------------- /alembic/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /alembic/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/alembic/env.py -------------------------------------------------------------------------------- /alembic/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/alembic/script.py.mako -------------------------------------------------------------------------------- /alembic/versions/6cdb431513de_first_migration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/alembic/versions/6cdb431513de_first_migration.py -------------------------------------------------------------------------------- /app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/app.py -------------------------------------------------------------------------------- /auth/deps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/auth/deps.py -------------------------------------------------------------------------------- /auth/jwt_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/auth/jwt_handler.py -------------------------------------------------------------------------------- /config/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/config/config.py -------------------------------------------------------------------------------- /database/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/dao/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /database/dao/dao_posts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/database/dao/dao_posts.py -------------------------------------------------------------------------------- /database/dao/dao_users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/database/dao/dao_users.py -------------------------------------------------------------------------------- /database/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/database/database.py -------------------------------------------------------------------------------- /db.dump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/db.dump -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /img/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/img/img.png -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/main.py -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/posts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/models/posts.py -------------------------------------------------------------------------------- /models/users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/models/users.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/pyproject.toml -------------------------------------------------------------------------------- /routes/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /routes/posts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/routes/posts.py -------------------------------------------------------------------------------- /routes/users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/routes/users.py -------------------------------------------------------------------------------- /schemas/posts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/schemas/posts.py -------------------------------------------------------------------------------- /schemas/users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/schemas/users.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/tests/setup.py -------------------------------------------------------------------------------- /tests/test_users.py: -------------------------------------------------------------------------------- 1 | from .setup import client 2 | 3 | 4 | -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darixsamani/fastapi-postgres/HEAD/uv.lock --------------------------------------------------------------------------------