
How I Structure Angular + Docker + AI Projects After 14 Years of Engineering
How I Structure Angular + Docker + AI Projects Every time I start a new Angular project, I used to waste 2-3 hours on the same boring setup: Folder structure? Let me think again... Docker? Copy from the last project and fix the broken parts... AI integration? Search Stack Overflow for 30 minutes... CI/CD? Another hour of YAML debugging... After 14 years building software for companies like Baker Hughes, Thales, and Autostrade per l'Italia, I finally created the setup I wish I had on day one. Here's exactly how I structure it ā and why. šļø The Architecture: Core / Shared / Features src/app/ āāā core/ ā Singleton services, interceptors (loaded ONCE) āāā shared/ ā Reusable components (used everywhere) āāā features/ ā Lazy-loaded pages (loaded on demand) āāā app.config.ts ā Standalone bootstrap āāā app.routes.ts ā Route definitions Why this pattern? core/ = things that exist once (HTTP interceptors, auth, AI service) shared/ = things used in multiple features (header, sidebar, buttons) fea
Continue reading on Dev.to
Opens in a new tab


