# nihithap/full-stack-with-angular-and-spring-boot architecture

> Architecture diagram of the GitHub repository nihithap/full-stack-with-angular-and-spring-boot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nihithap/full-stack-with-angular-and-spring-boot
- Repository: https://github.com/nihithap/full-stack-with-angular-and-spring-boot

## Overview

This repository is a course workspace whose central product example is an Angular todo client backed by Spring REST services. The user logs in, navigates guarded routes, and views or edits todos through HTTP data services; the backend offers authentication and todo API implementations, including JPA and in-memory storage. The README also documents REST, Basic/JWT security, and Angular-to-REST integration. Several backend resources and route components are unsampled, so links to those implementations are marked unverified rather than asserted as source-visible calls.

Main entry points: [`frontend/todo/src/app/app.routes.ts`](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/app.routes.ts) (App Routes), [`frontend/todo/src/app/service/basic-authentication.service.ts`](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/basic-authentication.service.ts) (Authentication Client), [`frontend/todo/src/app/app.component.ts`](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/app.component.ts) (App Shell), [`frontend/todo/src/app/service/data/todo-data.service.ts`](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/data/todo-data.service.ts) (Todo Data Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Angular Todo Client"]
  node_bootstrap["App Bootstrap<br/>[main.ts]"]
  node_app["App Shell<br/>[app.component.ts]"]
  node_routes["App Routes<br/>[app.routes.ts]"]
  node_login["Login View<br/>[login.component.ts]"]
  node_guard["Route Guard"]
  node_authclient["Authentication Client"]
  node_interceptor["Auth Interceptor"]
  node_welcome["Welcome View"]
  node_todo_list["Todo List View"]
  node_todo_detail["Todo Detail View<br/>[todo.component.ts]"]
  node_todo_client["Todo Data Client"]
  node_welcome_client["Welcome Data Client"]
end

subgraph group_api["REST API"]
  node_basic_auth_api["Basic Auth Endpoint"]
  node_jwt_api["JWT Endpoint"]
  node_jwt_service["JWT Token Service"]
  node_todo_resource["Todo API Resource"]
  node_todo_repository[("Todo Repository")]
  node_todo_entity["Todo Model<br/>[Todo.java]"]
  node_todo_memory["In-Memory Todo Service"]
end

subgraph group_security["Security Examples"]
  node_security_demo["Spring Security Demo"]
  node_security_jwt_demo["JWT Security Demo"]
  node_oauth_demo["OAuth Demo"]
end

subgraph group_boot["Spring Boot Examples"]
  node_course_api["Courses Endpoint"]
  node_currency_config["Currency Configuration"]
end

node_user(("User"))
node_api_actor(("REST Service"))

node_user -.->|"uses"| node_app
node_bootstrap -->|"bootstraps"| node_app
node_app -.->|"hosts routes"| node_routes
node_routes -->|"routes to"| node_login
node_routes -->|"routes to"| node_welcome
node_routes -->|"routes to"| node_todo_list
node_routes -->|"routes to"| node_todo_detail
node_routes -->|"guards routes"| node_guard
node_login -->|"authenticates with"| node_authclient
node_guard -.->|"checks session"| node_authclient
node_interceptor -->|"reads credentials"| node_authclient
node_todo_list -->|"requests todos"| node_todo_client
node_todo_detail -.->|"loads todo"| node_todo_client
node_welcome -->|"requests welcome"| node_welcome_client
node_authclient -.->|"calls auth endpoints"| node_api_actor
node_todo_client -.->|"calls todo endpoints"| node_api_actor
node_api_actor -.->|"serves Basic auth"| node_basic_auth_api
node_api_actor -.->|"serves JWT auth"| node_jwt_api
node_api_actor -.->|"serves todo API"| node_todo_resource
node_jwt_api -->|"generates token"| node_jwt_service
node_todo_resource -.->|"uses repository"| node_todo_repository
node_todo_memory -->|"stores records"| node_todo_entity
node_todo_repository -.->|"persists model"| node_todo_entity
node_user -.->|"explores Basic auth"| node_security_demo
node_user -.->|"explores JWT"| node_security_jwt_demo
node_user -.->|"explores OAuth"| node_oauth_demo

click node_bootstrap "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/main.ts"
click node_app "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/app.component.ts"
click node_routes "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/app.routes.ts"
click node_login "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/login/login.component.ts"
click node_guard "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/route-guard.service.ts"
click node_authclient "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/basic-authentication.service.ts"
click node_interceptor "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/http/http-intercepter-basic-auth.service.ts"
click node_welcome "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/welcome/welcome.component.ts"
click node_todo_list "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/list-todos/list-todos.component.ts"
click node_todo_detail "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/todo/todo.component.ts"
click node_todo_client "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/data/todo-data.service.ts"
click node_welcome_client "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/data/welcome-data.service.ts"
click node_basic_auth_api "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/basic/auth/BasicAuthenticationController.java"
click node_jwt_api "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/jwt/JwtAuthenticationRestController.java"
click node_jwt_service "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/jwt/JwtTokenService.java"
click node_todo_resource "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/TodoJpaResource.java"
click node_todo_repository "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/TodoJpaRepository.java"
click node_todo_entity "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/Todo.java"
click node_todo_memory "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/TodoHardcodedService.java"
click node_security_demo "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/71-spring-security/src/main/java/com/in28minutes/learnspringsecurity/basic/BasicAuthSecurityConfiguration.java"
click node_security_jwt_demo "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/71-spring-security/src/main/java/com/in28minutes/learnspringsecurity/jwt/JwtAuthenticationResource.java"
click node_oauth_demo "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/72-oauth/src/main/java/com/in28minutes/learnoauth/OauthSecurityConfiguration.java"
click node_course_api "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/zz-spring-boot-in-10-steps/src/main/java/com/in28minutes/springboot/learnspringboot/CourseController.java"
click node_currency_config "https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/zz-spring-boot-in-10-steps/src/main/java/com/in28minutes/springboot/learnspringboot/CurrencyServiceConfiguration.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bootstrap,node_app,node_routes,node_login,node_guard,node_authclient,node_interceptor,node_welcome,node_todo_list,node_todo_detail,node_todo_client,node_welcome_client,node_user toneBlue
class node_basic_auth_api,node_jwt_api,node_jwt_service,node_todo_resource,node_todo_repository,node_todo_entity,node_todo_memory toneAmber
class node_security_demo,node_security_jwt_demo,node_oauth_demo toneMint
class node_course_api,node_currency_config toneRose
class node_api_actor toneIndigo
```

## Components

### Angular Todo Client

- [App Bootstrap](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/main.ts): `frontend/todo/src/main.ts`
- [App Shell](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/app.component.ts): `frontend/todo/src/app/app.component.ts`
- [App Routes](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/app.routes.ts): `frontend/todo/src/app/app.routes.ts`
- [Login View](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/login/login.component.ts): `frontend/todo/src/app/login/login.component.ts`
- [Route Guard](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/route-guard.service.ts): `frontend/todo/src/app/service/route-guard.service.ts`
- [Authentication Client](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/basic-authentication.service.ts): `frontend/todo/src/app/service/basic-authentication.service.ts`
- [Auth Interceptor](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/http/http-intercepter-basic-auth.service.ts): `frontend/todo/src/app/service/http/http-intercepter-basic-auth.service.ts`
- [Welcome View](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/welcome/welcome.component.ts): `frontend/todo/src/app/welcome/welcome.component.ts`
- [Todo List View](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/list-todos/list-todos.component.ts): `frontend/todo/src/app/list-todos/list-todos.component.ts`
- [Todo Detail View](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/todo/todo.component.ts): `frontend/todo/src/app/todo/todo.component.ts`
- [Todo Data Client](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/data/todo-data.service.ts): `frontend/todo/src/app/service/data/todo-data.service.ts`
- [Welcome Data Client](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/frontend/todo/src/app/service/data/welcome-data.service.ts): `frontend/todo/src/app/service/data/welcome-data.service.ts`

### REST API

- [Basic Auth Endpoint](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/basic/auth/BasicAuthenticationController.java): `restful-web-services/src/main/java/com/in28minutes/rest/basic/auth/BasicAuthenticationController.java`
- [JWT Endpoint](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/jwt/JwtAuthenticationRestController.java): `restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/jwt/JwtAuthenticationRestController.java`
- [JWT Token Service](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/jwt/JwtTokenService.java): `restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/jwt/JwtTokenService.java`
- [Todo API Resource](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/TodoJpaResource.java): `restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/TodoJpaResource.java`
- [Todo Repository](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/TodoJpaRepository.java): `restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/TodoJpaRepository.java`
- [Todo Model](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/Todo.java): `restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/Todo.java`
- [In-Memory Todo Service](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/TodoHardcodedService.java): `restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/TodoHardcodedService.java`

### Security Examples

- [Spring Security Demo](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/71-spring-security/src/main/java/com/in28minutes/learnspringsecurity/basic/BasicAuthSecurityConfiguration.java): `71-spring-security/src/main/java/com/in28minutes/learnspringsecurity/basic/BasicAuthSecurityConfiguration.java`
- [JWT Security Demo](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/71-spring-security/src/main/java/com/in28minutes/learnspringsecurity/jwt/JwtAuthenticationResource.java): `71-spring-security/src/main/java/com/in28minutes/learnspringsecurity/jwt/JwtAuthenticationResource.java`
- [OAuth Demo](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/72-oauth/src/main/java/com/in28minutes/learnoauth/OauthSecurityConfiguration.java): `72-oauth/src/main/java/com/in28minutes/learnoauth/OauthSecurityConfiguration.java`

### Spring Boot Examples

- [Courses Endpoint](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/zz-spring-boot-in-10-steps/src/main/java/com/in28minutes/springboot/learnspringboot/CourseController.java): `zz-spring-boot-in-10-steps/src/main/java/com/in28minutes/springboot/learnspringboot/CourseController.java`
- [Currency Configuration](https://github.com/nihithap/full-stack-with-angular-and-spring-boot/blob/master/zz-spring-boot-in-10-steps/src/main/java/com/in28minutes/springboot/learnspringboot/CurrencyServiceConfiguration.java): `zz-spring-boot-in-10-steps/src/main/java/com/in28minutes/springboot/learnspringboot/CurrencyServiceConfiguration.java`

### Other components

- **User**
- **REST Service**

## Connections

- User → App Shell: uses
- App Bootstrap → App Shell: bootstraps (evidence: `frontend/todo/src/main.ts`)
- App Shell → App Routes: hosts routes
- App Routes → Login View: routes to (evidence: `frontend/todo/src/app/app.routes.ts`)
- App Routes → Welcome View: routes to (evidence: `frontend/todo/src/app/app.routes.ts`)
- App Routes → Todo List View: routes to (evidence: `frontend/todo/src/app/app.routes.ts`)
- App Routes → Todo Detail View: routes to (evidence: `frontend/todo/src/app/app.routes.ts`)
- App Routes → Route Guard: guards routes (evidence: `frontend/todo/src/app/app.routes.ts`)
- Login View → Authentication Client: authenticates with (evidence: `frontend/todo/src/app/login/login.component.ts`)
- Route Guard → Authentication Client: checks session (evidence: `frontend/todo/src/app/service/route-guard.service.ts`)
- Auth Interceptor → Authentication Client: reads credentials (evidence: `frontend/todo/src/app/service/http/http-intercepter-basic-auth.service.ts`)
- Todo List View → Todo Data Client: requests todos (evidence: `frontend/todo/src/app/list-todos/list-todos.component.ts`)
- Todo Detail View → Todo Data Client: loads todo (evidence: `frontend/todo/src/app/todo/todo.component.ts`)
- Welcome View → Welcome Data Client: requests welcome (evidence: `frontend/todo/src/app/welcome/welcome.component.ts`)
- Authentication Client → REST Service: calls auth endpoints
- Todo Data Client → REST Service: calls todo endpoints
- REST Service → Basic Auth Endpoint: serves Basic auth
- REST Service → JWT Endpoint: serves JWT auth
- REST Service → Todo API Resource: serves todo API
- JWT Endpoint → JWT Token Service: generates token (evidence: `restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/jwt/JwtAuthenticationRestController.java`)
- Todo API Resource → Todo Repository: uses repository
- In-Memory Todo Service → Todo Model: stores records (evidence: `restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/TodoHardcodedService.java`)
- Todo Repository → Todo Model: persists model (evidence: `restful-web-services/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/todo/TodoJpaRepository.java`)
- User → Spring Security Demo: explores Basic auth
- User → JWT Security Demo: explores JWT
- User → OAuth Demo: explores OAuth
