Commit Graph

12 Commits

Author SHA1 Message Date
87b094220d refactor: migrate to DDD architecture with Dishka DI
Complete architectural refactoring from simple MVC to Clean Architecture/DDD pattern:

Domain Layer:

- Add entities (Post, BaseEntity) with business logic

- Add value objects (Title, Content, Slug) with validation

- Add repository interfaces (PostRepository)

- Add domain exceptions

Application Layer:

- Add use cases (CreatePost, GetPost, UpdatePost, DeletePost, ListPosts, PublishPost)

- Add DTOs for data transfer

- Add TransactionManager interface

Infrastructure Layer:

- Add SQLAlchemy models and async database connection

- Add SQLAlchemyPostRepository implementation

- Add Dishka DI container with providers

- Add error handlers and middleware

Presentation Layer:

- Add FastAPI routes with Dishka integration

- Add Pydantic schemas

- Add dependency injection using FromDishka[T]

Other Changes:

- Remove old flat structure (api/, common/, core/, modules/)

- Add hatchling build system for package scripts

- Add blog CLI command

- Update AGENTS.md with new architecture docs

- All 48 tests passing, mypy clean, ruff clean
2026-05-01 20:20:41 +03:00
b8334efa5a fix: delete artefacts 2026-04-27 00:30:26 +03:00
2f27527c2e Merge pull request 'dev' (#8) from dev into main
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/type Pipeline was successful
ci/woodpecker/push/comment_pr Pipeline failed
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/type Pipeline was successful
ci/woodpecker/pr/comment_pr Pipeline was successful
Reviewed-on: #8
2026-04-26 19:36:26 +00:00
9a6b608c73 feat: implement blog project with CI pipeline
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/type Pipeline was successful
ci/woodpecker/push/comment_pr Pipeline failed
2026-04-26 21:12:17 +03:00
2e930ffbe5 feat: implement blog project with CI pipeline
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/type Pipeline was successful
ci/woodpecker/pr/comment_pr Pipeline was successful
2026-04-26 21:08:49 +03:00
9c3b44b561 [QG] Add quality gates on main branch
All checks were successful
ci/woodpecker/push/lints Pipeline was successful
ci/woodpecker/push/tests Pipeline was successful
ci/woodpecker/push/types Pipeline was successful
[+] add lint pipeline for ruff isort and black checks
[+] add types pipeline for mypy check
[+] add tests pipeline for pytest check with coverage less 70% blocker QG
[+] add some tests fo QG pass
2026-04-20 10:06:29 +03:00
048071263a Dev dependencies
[+] install dev deps in --dev group
[+] add pre-commit config
2026-04-19 15:59:16 +03:00
7cd0d8c229 pipeline updated
Some checks failed
ci/woodpecker/push/python_lints Pipeline failed
ci/woodpecker/push/test_pipeline Pipeline failed
2026-04-19 14:07:31 +03:00
fa8751c973 [Lint] add pipeline
All checks were successful
ci/woodpecker/push/test_pipeline Pipeline was successful
ci/woodpecker/push/python_lints Pipeline was successful
[+] Add lint pipeline for testing
2026-04-19 12:08:15 +03:00
ba45f40a9b [Blog] Preparing
All checks were successful
ci/woodpecker/push/test_pipeline Pipeline was successful
[+] Fastapi app init
[+] Test ci pipeline
2026-04-19 10:58:53 +03:00
ef797bc85b blog project init 2026-04-12 21:35:18 +03:00
2cb55be630 Initial commit 2026-04-12 18:31:24 +00:00