folders-structure-backend
Installation
SKILL.md
Backend Folder Structure
A single Spring Boot module organised by bounded context. Each top-level package under com.portfolioai/ is one context with the same domain/ → application/ → infrastructure/ hexagonal split inside.
No top-level domain/, application/, or infrastructure/ package. The split is inside each context, not above it.
Post-pivot live contexts : journal/ (the main module — CRUD over trade entries + CSV export/import + Pageable listing) + auth/ (always-live). Dormant pre-pivot contexts kept in the tree until phase 2 enrichment kicks in : market/, analysis/, portfolio/, news/, analyst/, earnings/, screener/, watchlist/, config/. They still compile and pass their tests ; nothing routes to them from the live UI today.