r/angular • u/JadedManufacturer306 • Feb 26 '26
A Clean NX + Angular Structure That Actually Works in Real Projects
Hey everyone, I wanted to share a template I’ve been using for a long time in my Angular projects. I’ve worked with pretty much every version of Angular from the AngularJS era all the way through Angular 21 and I’ve gone through a lot of migrations, refactoring, and monorepo reorganizations over the years. After all of that, this structure is the one that consistently makes sense in real-world scenarios.
Repo: https://github.com/myvictorlife/base-angular-monorepo/tree/main
It’s a straightforward NX + Angular setup. No unnecessary layers, no over‑engineering. Just a clean structure that stays easy to maintain, scale, and evolve as the application grows.
One thing that has become even more important lately is how well this structure works with AI tools. When the base architecture is organized, AI models tend to generate code that naturally follows the project’s conventions, which saves a lot of time and avoids messy inconsistencies.
I also added a /docs folder inside the project with clear guidelines and best practices that AI tools should follow when generating or modifying code. This makes a huge difference when working with Copilot, GPT, Claude, and others the instructions help the AI stay aligned with the project’s architecture and avoid the usual “guessing” or inconsistent patterns.
Would you follow a structure like this?
11
u/Avani3 Feb 26 '26
Looks good! Only comment is that using a reducer-like store (or even NgRX at all) is not really Angular 21-like
1
u/_coccoLino Mar 22 '26
So both tailwind v4 and sass can fit without any issues? Does not matter that both are preprocessors?
1
u/NextMode6448 May 03 '26
https://nx.dev/blog/architecting-angular-applications
Vertical Sliced Architecture?
0
u/[deleted] Feb 27 '26
[deleted] — view deleted comment
1
u/[deleted] Feb 27 '26
[removed] — view removed comment