How gabriel-minano/frontend-minimarket works
This Angular minimarket frontend supports a login-to-dashboard workflow: users submit credentials, the app requests a session from its API, stores and validates that session, then allows guarded dashboard access and logout. Its other meaningful runtime layers are application routing, shared HTTP authentication handling, API configuration, and response/authentication contracts. The README is empty; the map is based on the supplied source excerpts and index, so dashboard capabilities beyond the sampled component are not inferred.
Main entry points: auth.service.ts Session service · app.routes.ts Route table · login.ts Login form · app.config.ts App providers
Components 16
Application shell
- Application bootstrap
src/main.ts - App providers
src/app/app.config.ts - Root shell
src/app/app.ts - Route table
src/app/app.routes.ts
User workflows
- Login form
src/app/features/auth/login/login.ts - Dashboard
src/app/features/dashboard/dashboard/dashboard.ts
Authentication
- Session service
src/app/core/auth/auth.service.ts - Auth guard
src/app/core/guards/auth.guard.ts - HTTP interceptor
src/app/core/interceptors/auth.interceptor.ts
API contracts
- API configuration
src/app/core/config/api.config.ts - API environment
src/environments/environment.ts - Auth data models
src/app/core/auth/models/auth-response.model.ts - API response model
src/app/shared/models/api-response.model.ts
Other components
- User
- Browser session storage
- Minimarket API
Connections 20
- Application bootstrap → App providers: bootstraps with
src/main.ts - Application bootstrap → Root shell: bootstraps
src/main.ts - App providers → Route table: provides routes
src/app/app.config.ts - App providers → HTTP interceptor: registers
src/app/app.config.ts - User → Login form: submits credentials
src/app/features/auth/login/login.ts - Route table → Login form: loads
src/app/app.routes.ts - Route table → Dashboard: loads
src/app/app.routes.ts - Route table → Auth guard: guards route
src/app/app.routes.ts - Login form → Session service: requests login
src/app/features/auth/login/login.ts - Session service → Minimarket API: posts credentials
src/app/core/auth/auth.service.ts - Session service → Browser session storage: reads and writes
src/app/core/auth/auth.service.ts - Auth guard → Session service: checks session
src/app/core/guards/auth.guard.ts - Dashboard → Session service: logs out
src/app/features/dashboard/dashboard/dashboard.ts - HTTP interceptor → Session service: gets token
src/app/core/interceptors/auth.interceptor.ts - HTTP interceptor → API configuration: checks API URLs
src/app/core/interceptors/auth.interceptor.ts - Session service → API configuration: uses login URL
src/app/core/auth/auth.service.ts - API configuration → API environment: reads API URL
src/app/core/config/api.config.ts - Session service → Auth data models: validates session
src/app/core/auth/auth.service.ts - Session service → API response model: types API result
src/app/core/auth/auth.service.ts - Login form → API response model: checks error response
src/app/features/auth/login/login.ts