How jmgsalaices/challenge-mi-app-front works
MyApp is an Angular frontend for signing in and managing applications. The main workflow is login, token storage, authenticated application retrieval, and opening a form to submit a request, offer, or complaint. Routing also exposes the application list and new-application dialog as separate routes. The excerpts establish frontend calls to backend endpoints but do not show backend behavior; list refresh after submission is not implemented in the sampled code. Relationships for root-template rendering and user interaction are therefore omitted.
Main entry points: app.routes.ts Page routes · login.ts Login page · authService.ts Auth service · list.ts Applications list
Components 13
Application shell
- App bootstrap
src/main.ts - Root component
src/app/app.ts - Page routes
src/app/app.routes.ts
Authentication
- Login page
src/app/auth/login/login.ts - Auth service
src/app/auth/authService.ts - Auth interceptor
src/app/auth.interceptor.ts - Browser token storage
Application management
- Applications list
src/app/applications/list/list.ts - Application service
src/app/applications/applicationService.ts - New application form
src/app/new-application-dialog/new-application-dialog.component.ts
Other components
- Browser user
- Auth API
- Applications API
Connections 17
- App bootstrap → Root component: bootstraps
src/main.ts - App bootstrap → Page routes: provides routes
src/main.ts - App bootstrap → Auth interceptor: registers
src/main.ts - Page routes → Login page: routes to
src/app/app.routes.ts - Page routes → Applications list: routes to
src/app/app.routes.ts - Page routes → New application form: routes to
src/app/app.routes.ts - Login page → Auth service: logs in through
src/app/auth/login/login.ts - Login page → Page routes: navigates via
src/app/auth/login/login.ts - Auth service → Auth API: posts credentials
src/app/auth/authService.ts - Auth service → Browser token storage: reads and writes
src/app/auth/authService.ts - Auth interceptor → Auth service: reads token
src/app/auth.interceptor.ts - Applications list → Application service: loads applications
src/app/applications/list/list.ts - Applications list → New application form: opens dialog
src/app/applications/list/list.ts - New application form → Application service: creates application
src/app/new-application-dialog/new-application-dialog.component.ts - Application service → Applications API: gets and posts
src/app/applications/applicationService.ts - Browser user → Login page: uses
- Browser user → Applications list: uses