Angular directory structure for large projects
I have spent a lot of time organizing the directory structure of my Angular 2 / 4 project to achieve the following: Developing new sections with ease by adding lazy loaded modules. Keeping modules organized in a single folder. Separating public and secure layouts and their related code Organizing global and re-usable assets Having lots of granularity with many files (not putting all the code in a single file, that's Webpack's job) I run my Angular projects using a full MEAN stack on Heroku from a single project. I have omitted all the Express/Mongo (server-side code) to focus on Angular directory structure. I currently run 3 public modules and 9 secure modules in production and feel like this will scale nicely as my project grows: config/ -----cluster.js // Process Forking Support for NodeJs -----express.js // Express.js Setup -----settings.js // Server side settings from ENV vars and other defaults. -----web.js // Main entry point -----webpack.config.js // ...