├── .env.example ├── .github ├── dependabot.yml └── workflows │ ├── dev_build.yml │ ├── tests.yml │ └── type_check.yml ├── .gitignore ├── .pre-commit-config.yaml ├── Dockerfile ├── LICENSE ├── README.md ├── alembic.ini ├── alembic ├── README ├── env.py ├── script.py.mako └── versions │ └── 20250602_2142_initial_migration_be24780c0da0.py ├── app ├── __init__.py ├── api │ ├── __init__.py │ ├── api_messages.py │ ├── api_router.py │ ├── deps.py │ └── endpoints │ │ ├── __init__.py │ │ ├── auth.py │ │ └── users.py ├── core │ ├── __init__.py │ ├── config.py │ ├── database_session.py │ └── security │ │ ├── __init__.py │ │ ├── jwt.py │ │ └── password.py ├── main.py ├── models.py ├── schemas │ ├── __init__.py │ ├── requests.py │ └── responses.py └── tests │ ├── __init__.py │ ├── conftest.py │ ├── test_api_router_jwt_errors.py │ ├── test_auth │ ├── __init__.py │ ├── test_access_token.py │ ├── test_auth_refresh_token.py │ └── test_register_new_user.py │ ├── test_core │ ├── __init__.py │ ├── test_jwt.py │ └── test_password.py │ └── test_users │ ├── __init__.py │ ├── test_delete_current_user.py │ ├── test_read_current_user.py │ └── test_reset_password.py ├── docker-compose.yml ├── init.sh ├── poetry.lock └── pyproject.toml /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/.env.example -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/dev_build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/.github/workflows/dev_build.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.github/workflows/type_check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/.github/workflows/type_check.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/README.md -------------------------------------------------------------------------------- /alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/alembic.ini -------------------------------------------------------------------------------- /alembic/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /alembic/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/alembic/env.py -------------------------------------------------------------------------------- /alembic/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/alembic/script.py.mako -------------------------------------------------------------------------------- /alembic/versions/20250602_2142_initial_migration_be24780c0da0.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/alembic/versions/20250602_2142_initial_migration_be24780c0da0.py -------------------------------------------------------------------------------- /app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/api/api_messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/api/api_messages.py -------------------------------------------------------------------------------- /app/api/api_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/api/api_router.py -------------------------------------------------------------------------------- /app/api/deps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/api/deps.py -------------------------------------------------------------------------------- /app/api/endpoints/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/api/endpoints/auth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/api/endpoints/auth.py -------------------------------------------------------------------------------- /app/api/endpoints/users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/api/endpoints/users.py -------------------------------------------------------------------------------- /app/core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/core/config.py -------------------------------------------------------------------------------- /app/core/database_session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/core/database_session.py -------------------------------------------------------------------------------- /app/core/security/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/security/jwt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/core/security/jwt.py -------------------------------------------------------------------------------- /app/core/security/password.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/core/security/password.py -------------------------------------------------------------------------------- /app/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/main.py -------------------------------------------------------------------------------- /app/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/models.py -------------------------------------------------------------------------------- /app/schemas/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/schemas/requests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/schemas/requests.py -------------------------------------------------------------------------------- /app/schemas/responses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/schemas/responses.py -------------------------------------------------------------------------------- /app/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/tests/conftest.py -------------------------------------------------------------------------------- /app/tests/test_api_router_jwt_errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/tests/test_api_router_jwt_errors.py -------------------------------------------------------------------------------- /app/tests/test_auth/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/tests/test_auth/test_access_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/tests/test_auth/test_access_token.py -------------------------------------------------------------------------------- /app/tests/test_auth/test_auth_refresh_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/tests/test_auth/test_auth_refresh_token.py -------------------------------------------------------------------------------- /app/tests/test_auth/test_register_new_user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/tests/test_auth/test_register_new_user.py -------------------------------------------------------------------------------- /app/tests/test_core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/tests/test_core/test_jwt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/tests/test_core/test_jwt.py -------------------------------------------------------------------------------- /app/tests/test_core/test_password.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/tests/test_core/test_password.py -------------------------------------------------------------------------------- /app/tests/test_users/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/tests/test_users/test_delete_current_user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/tests/test_users/test_delete_current_user.py -------------------------------------------------------------------------------- /app/tests/test_users/test_read_current_user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/tests/test_users/test_read_current_user.py -------------------------------------------------------------------------------- /app/tests/test_users/test_reset_password.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/app/tests/test_users/test_reset_password.py -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /init.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/init.sh -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafsaf/minimal-fastapi-postgres-template/HEAD/pyproject.toml --------------------------------------------------------------------------------