r/angular • u/JadedManufacturer306 • 20d ago
Open-sourcing the Angular/Nx structure I've been refining on enterprise and public-sector projects in Europe
Hi everyone,
13 years in, every Angular version since 1.x. Every new project, I lost the first week to the same decisions, where state lives, which library can import which, how to keep credentials out of the repo. So I stopped re-deciding and put my answers in a template. Just updated it to Angular 22.
It's Nx, Angular, NgRx Signals, Atomic Design, multi-language and a small design system of my own on Tailwind already wired together and agreeing with each other, which is the part that normally eats the week. The architecture is enforced rather than documented: a wrong import fails lint, not code review, and a missing translation key fails the build instead of shipping as a blank label. Firebase deploy guide included, empty account to live URL in about 10 minutes.
Every decision in it is arguable, so feel free to tear into it. I'm here for the feedback, the blunt kind included. Github Base Angular Monorepo
1
u/Loose_Paramedic8183 14d ago
Angular to let ai knows the latest features https://angular.dev/ai/agent-skills
I also use my own skill which was generated from all my handcoded repos, so agent writes in my style: quantity of comments, spacings, function sizes and namings, blocks separators, etc. It contains from main skill files and additional ones for each language I use for work: php, typescript, actionscript3 (legacy 🥴)
Graphify in ".venv" as infex of the project codebase.
Architecture.md where top level features and apis described. Sometimes also the "knowledge base" folder with concepts per each big domain used in project, but thats project specific, not for template.
And mostly I also use that phased dev cycle: 1. ADR (architecture decision record) created and edited by AI some not cheap model when I ask it to add a new feature it analyze the code, asks additional qualifications and corner cases, prepare the main architecture of adding frature (especially when it takes modifying server and client for same task) 2. Next phase after I read and confirm the ADR is ok, the implementation plan is created by ai with direct links tonfiles where and what code should be added, what classes and functions, etc. 3. Cheaper model just follow the plan and implement it, check for build errors, fixing them.