├── LICENSE ├── Pipfile ├── Pipfile.lock ├── README.md ├── alembic.ini ├── pyproject.toml └── src ├── application ├── authentication │ ├── __init__.py │ └── dependency_injection.py └── orders.py ├── config └── __init__.py ├── domain ├── authentication │ ├── __init__.py │ └── models.py ├── orders │ ├── __init__.py │ ├── models.py │ └── repository.py ├── products │ ├── __init__.py │ ├── models.py │ └── repository.py └── users │ ├── __init__.py │ ├── models.py │ └── repository.py ├── infrastructure ├── application │ ├── __init__.py │ └── factory.py ├── database │ ├── __init__.py │ ├── migrations │ │ ├── README │ │ ├── env.py │ │ ├── script.py.mako │ │ └── versions │ │ │ └── 69888b706120_.py │ ├── repository.py │ ├── session.py │ ├── tables.py │ └── transaction.py ├── errors │ ├── __init__.py │ ├── base.py │ └── handlers.py └── models │ ├── __init__.py │ ├── base.py │ └── response.py ├── main.py └── presentation ├── __init__.py └── rest ├── __init__.py ├── orders.py └── products.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/LICENSE -------------------------------------------------------------------------------- /Pipfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/Pipfile -------------------------------------------------------------------------------- /Pipfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/Pipfile.lock -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/README.md -------------------------------------------------------------------------------- /alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/alembic.ini -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/pyproject.toml -------------------------------------------------------------------------------- /src/application/authentication/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/application/authentication/__init__.py -------------------------------------------------------------------------------- /src/application/authentication/dependency_injection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/application/authentication/dependency_injection.py -------------------------------------------------------------------------------- /src/application/orders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/application/orders.py -------------------------------------------------------------------------------- /src/config/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/config/__init__.py -------------------------------------------------------------------------------- /src/domain/authentication/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/domain/authentication/__init__.py -------------------------------------------------------------------------------- /src/domain/authentication/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/domain/authentication/models.py -------------------------------------------------------------------------------- /src/domain/orders/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/domain/orders/__init__.py -------------------------------------------------------------------------------- /src/domain/orders/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/domain/orders/models.py -------------------------------------------------------------------------------- /src/domain/orders/repository.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/domain/orders/repository.py -------------------------------------------------------------------------------- /src/domain/products/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/domain/products/__init__.py -------------------------------------------------------------------------------- /src/domain/products/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/domain/products/models.py -------------------------------------------------------------------------------- /src/domain/products/repository.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/domain/products/repository.py -------------------------------------------------------------------------------- /src/domain/users/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/domain/users/__init__.py -------------------------------------------------------------------------------- /src/domain/users/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/domain/users/models.py -------------------------------------------------------------------------------- /src/domain/users/repository.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/domain/users/repository.py -------------------------------------------------------------------------------- /src/infrastructure/application/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/application/__init__.py -------------------------------------------------------------------------------- /src/infrastructure/application/factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/application/factory.py -------------------------------------------------------------------------------- /src/infrastructure/database/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/database/__init__.py -------------------------------------------------------------------------------- /src/infrastructure/database/migrations/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/database/migrations/README -------------------------------------------------------------------------------- /src/infrastructure/database/migrations/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/database/migrations/env.py -------------------------------------------------------------------------------- /src/infrastructure/database/migrations/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/database/migrations/script.py.mako -------------------------------------------------------------------------------- /src/infrastructure/database/migrations/versions/69888b706120_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/database/migrations/versions/69888b706120_.py -------------------------------------------------------------------------------- /src/infrastructure/database/repository.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/database/repository.py -------------------------------------------------------------------------------- /src/infrastructure/database/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/database/session.py -------------------------------------------------------------------------------- /src/infrastructure/database/tables.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/database/tables.py -------------------------------------------------------------------------------- /src/infrastructure/database/transaction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/database/transaction.py -------------------------------------------------------------------------------- /src/infrastructure/errors/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/errors/__init__.py -------------------------------------------------------------------------------- /src/infrastructure/errors/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/errors/base.py -------------------------------------------------------------------------------- /src/infrastructure/errors/handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/errors/handlers.py -------------------------------------------------------------------------------- /src/infrastructure/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/models/__init__.py -------------------------------------------------------------------------------- /src/infrastructure/models/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/models/base.py -------------------------------------------------------------------------------- /src/infrastructure/models/response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/infrastructure/models/response.py -------------------------------------------------------------------------------- /src/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/main.py -------------------------------------------------------------------------------- /src/presentation/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/presentation/rest/__init__.py: -------------------------------------------------------------------------------- 1 | from src.presentation.rest import orders, products 2 | -------------------------------------------------------------------------------- /src/presentation/rest/orders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/presentation/rest/orders.py -------------------------------------------------------------------------------- /src/presentation/rest/products.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Craxti/fastapi_layered/HEAD/src/presentation/rest/products.py --------------------------------------------------------------------------------