Free eBook about this topic: https://www.angulararchitects.io/book/
Source Code - DDD and Nx: https://github.com/manfredsteyer/angular-ddd