A modular, scalable, and maintainable Angular 15+ boilerplate built with best practices. Designed for enterprise-level applications with a well-structured folder architecture, lazy-loaded modules, shared utilities, and core services.
β
Modular folder structure
β
Lazy-loaded features modules
β
Centralized core services and interceptors
β
Reusable shared components, pipes, and directives
β
Auth module with guard support
β
Layout module with base layout
β
Google Places and Payment service integrations
β
Theming with custom LESS support
β
SCSS global styles
β
Environment-specific configurations
angular-boilerplate/
β
βββ src/
β βββ app/
β β βββ core/ # Singleton services & interceptors
β β β βββ interceptors/
β β β β βββ auth.interceptor.ts
β β β βββ services/
β β β β βββ api.service.ts
β β β β βββ auth.service.ts
β β β β βββ google-places.service.ts
β β β β βββ payment.service.ts
β β β βββ core.config.ts # Use this to configure core providers (replaces module)
β β β
β β βββ shared/ # Reusable components, pipes, directives
β β β βββ components/
β β β β βββ custom-input/
β β β β βββ custom-input.component.ts
β β β βββ directives/
β β β βββ pipes/
β β β βββ shared.config.ts # Export reusable components, directives (optional)
β β β
β β βββ auth/
β β β βββ login/
β β β β βββ login.component.ts
β β β βββ register/
β β β β βββ register.component.ts
β β β βββ guards/
β β β βββ auth.guard.ts
β β β
β β βββ features/ # Standalone features
β β β βββ dashboard/
β β β β βββ components/
β β β β βββ dashboard.component.ts
β β β β
β β β βββ contacts/
β β β β βββ components/
β β β β βββ contacts.component.ts
β β β β
β β β βββ payment/
β β β β βββ payment-form.component.ts
β β β β
β β β βββ maps/
β β β βββ place-search.component.ts
β β β
β β βββ layout/ # Application shell
β β β βββ main-layout/
β β β β βββ main-layout.component.ts
β β β βββ layout.config.ts
β β β
β β βββ app.config.ts # Main app providers, guards, etc.
β β βββ app.routes.ts # Standalone route definitions
β β βββ main.ts # Bootstrapping the app
β β
β βββ assets/
β β βββ styles/
β β βββ themes.less
β β
β βββ environments/
β β βββ environment.ts
β β βββ environment.prod.ts
β β
β βββ styles.scss
β
βββ angular.json
βββ package.json
βββ tsconfig.json
βββ README.md
git clone https://github.com/hmuzzal/Angular-Essential.git
cd Angular-Essential
npm install
ng serve- Angular CLI: v19.x
- Node.js: v18.13.0 or higher (v18.x or v20.x recommended for Angular 19)
Open an issue, fork the repo, or submit a pull request β your ideas are welcome!