1.0 KiB
1.0 KiB
description, argument-hint
| description | argument-hint | |
|---|---|---|
| Create a new Angular application with routing and guards |
|
Create a new Angular application named $1 with the following structure:
-
Use Angular CLI to create the app with routing and SCSS:
ng new $1 --routing --style=scss -
Generate essential structure:
cd $1 ng generate guard auth/guards/auth ng generate service auth/services/auth ng generate module core ng generate module shared ng generate component core/components/layout -
Create a basic folder structure:
src/app/core/- Core functionality (singletons, guards, interceptors)src/app/shared/- Shared components, directives, pipessrc/app/features/- Feature modulessrc/app/auth/- Authentication logic
-
Initialize git repository if not already done
-
Create a README.md explaining the project structure and how to run it
After creation, provide the user with:
- Next steps to run the application
- Explanation of the folder structure
- Common commands they might need