This project is an advanced Angular CRUD application for managing heroes, built as part of an advanced Angular course. It features a simulated backend using json-server and is structured with Standalone Components instead of traditional modules.
- Standalone Components: Transitioned from a modular approach to a fully standalone component architecture.
- Angular Material & PrimeFlex: Practiced UI design with Material components and flexible layouts using PrimeFlex.
- Lazy Loading & Child Routes: Optimized performance using child routes and lazy loading strategies.
- Environment Variables: Implemented different environment configurations.
- Reactive Forms: Used reactive forms for handling dynamic form validation and interactions.
- Guards: Implemented route guards for protected routes.
- Frontend: Angular 15+ (Standalone Components, Lazy Loading, Angular Material, PrimeFlex)
- Backend Simulation: JSON Server (
json-server) - State Management: Reactive Forms, Route Guards
git clone https://github.com/adptCode/heroesApp.git
cd heroesAppnpm installnpm run backendnpm startOr alternatively:
ng serve -oThis will open the application in your default browser.
This application includes authentication guards to protect certain routes. Ensure you understand how to configure and implement guards in Angular before modifying them.
heroesApp/
│── src/
│ ├── app/
│ │ ├── components/ # Standalone Components
│ │ ├── services/ # API calls & business logic
│ │ ├── guards/ # Route protection
│ │ ├── pages/ # Feature pages with Lazy Loading
│ ├── assets/ # Static files
│ ├── environments/ # Environment Variables
This project is open-source and available under the MIT License.
🚀 Happy coding!