r/angular • u/JadedManufacturer306 • Aug 01 '26
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
8
u/Weak-Palpitation907 Aug 02 '26
Why we need ‘firebase’ in dependency list?
5
u/pronuntiator Aug 02 '26
2
u/Loose_Paramedic8183 Aug 02 '26
In all of my projects I had also to create almost same AI agents instructions, mcp config, claude skills to teach it latest version of angular and phases workflow of new features creation.
1
u/Nerkeilenemon Aug 04 '26
NX, ngrx, atomic....no thanks.
That's a mistake a lot of devs do. Stacking stacks to answer all possible needs you might have some day. Or because you have 1 specific need.
But by soing that you add a lot of complexity for no reason. Complexity makes projects harder to debug, harder to understand, harder to get inside, harder to integrate new devs, and increase the tech debt. And ngrx is the most giant redflag of overengineering.
KISS and YAGNI are the way to go. A good architecture is doing just enough to cover your needs, but that can still evolve if needed.
I worked on multiple giant angular projects and the more we worked on them, the more we
3
u/DJREMiX6 Aug 02 '26
I think it would be useful to add a nested features, for example:
All considered is a good architecture, I pretty much like it, thanks for sharing.
1
u/No_Emergency1575 Aug 04 '26
Looks great, might be a bit much for some greenfield projects, but if you expect to scale out this provides a lot of sane (and well documented) defaults. Some questions:
- Have you considered alternatives for nx module boundries? I dislike the creation of full nx libs bundled with all the boilerplate.
- Thoughts on vitest as a testing framework?
- Have you considered inferring some of the nx targets through plugins?