If you were to have a second host app would it also need to be part of this repo/mono-repo?
An Angular monorepo or Workspace has the capability of having multiple application projects (there are (2) types of projects: application and library). Therefore, it is possible to have as many host application projects that you need…
Thanks for the nice article. One of the enjoyable things about Nx and the workspace is that it doesn’t require the overhead of building library projects or Nx Workspace Schematics to use them. Create and run Nx Schematics without build:
nx workspace-schematic <schematic> <name option>
Thanks Thomas for an excellent article on scaffolding an Angular application using the CLI (so many options). I like the Core and Shared modules implementation. A great technique for better code organization.
I also add a Cross-Cutting module for: ErrorHandling, Logging, Http, Configuration, and Notification services…
Thanks for the nice article. I have been learning about clean architecture and have been interested in applying the principles and patterns to Angular applications.
I like the Repository pattern abstraction between the
Use Cases and the
HTTP/Data Access layer(s). A great pattern. I’m wondering about your motivations for…
Yes. A monorepo is not a monolith just because they start with the same 4 letters — it is so much more, thanks for the highlights. Many developer workflow benefits. I went monorepo 1.5 years ago with Angular, no regrets. The Angular monorepo is called a Workspace…
Reload Visual Studio Code Window
I use the
paths configuration in the
tsconfig.json file to manage references to library projects in the Angular Workspace. To reload changes without closing Visual Studio Code, use
Ctrl + Shift + P and find the option: Reload Window
If you are using an interface to define a shape/schema for some data and you are creating Object literals to represent that data — Why not use a class? You get a constructor, you can validate the input, you can overload the constructor, you can use getters/setters, the class can inherit from a base class and also implement multiple interfaces? Is it…
Great article, a must-read for all when starting a new project or implementing a new feature. There has to be a plan for handling errors. Hoping that they do not happen is not a proper solution. Understanding a feature or process requires thought about alternate flows or errors; and how we communicate this information to interested parties.