# anubhavkumaro/jwtprojectwithvscode architecture

> Architecture diagram of the GitHub repository anubhavkumaro/jwtprojectwithvscode, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anubhavkumaro/jwtprojectwithvscode
- Repository: https://github.com/anubhavkumaro/jwtprojectwithvscode

## Overview

The tree indicates a Spring Java application for JWT-based authentication and a product/cart domain, with controllers, services, repositories, entities, and security/configuration components. The principal workflow appears to cover authentication and commerce operations, but the README is empty and no source excerpts were provided. Accordingly, the graph identifies the substantial runtime components without asserting calls, data transfers, or persistence relationships that cannot be verified from the available evidence.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API"]
  node_auth_controller["Auth Controller"]
  node_product_controller["Product Controller"]
  node_user_controller["User Controller"]
  node_auth_dto["Auth DTOs<br/>[LoginRequest.java]"]
  node_product_dto["Product Request DTO"]
  node_cart_dto["Cart DTOs<br/>[CartResponse.java]"]
  node_user_dto["User Request DTO<br/>[UserRequest.java]"]
end

subgraph group_commerce["Commerce"]
  node_product_service["Product Service"]
  node_product_service_impl["Product Service Implementation"]
  node_cart_service["Cart Service<br/>[CartService.java]"]
  node_image_config["Image Web Configuration"]
end

subgraph group_identity["Identity and Security"]
  node_auth_service["Auth Service<br/>[AuthService.java]"]
  node_user_service["User Service<br/>[UserService.java]"]
  node_user_details["User Details Service"]
  node_jwt_filter["JWT Filter<br/>[JwtFilter.java]"]
  node_jwt_util["JWT Utilities<br/>[JwtUtil.java]"]
  node_security_config["Security Configuration"]
end

subgraph group_domain["Domain and Persistence"]
  node_product_entity["Product Entity<br/>[Product.java]"]
  node_cart_item_entity["Cart Item Entity<br/>[CartItem.java]"]
  node_user_entity["User Entity<br/>[User.java]"]
  node_product_repository["Product Repository"]
  node_cart_repository["Cart Item Repository"]
  node_user_repository["User Repository"]
end

node_application["Application Entry"]

click node_application "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/JwtProjectWithVsCodeApplication.java"
click node_auth_controller "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/controller/AuthController.java"
click node_product_controller "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/controller/ProductController.java"
click node_user_controller "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/controller/UserController.java"
click node_auth_dto "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/dto/LoginRequest.java"
click node_product_dto "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/dto/ProductRequestDto.java"
click node_cart_dto "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/dto/CartResponse.java"
click node_user_dto "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/dto/UserRequest.java"
click node_product_service "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/ProductService.java"
click node_product_service_impl "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/ProductServiceImplementation.java"
click node_cart_service "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/CartService.java"
click node_auth_service "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/AuthService.java"
click node_user_service "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/UserService.java"
click node_user_details "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/CustomUserDetailsService.java"
click node_jwt_filter "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/security/JwtFilter.java"
click node_jwt_util "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/security/JwtUtil.java"
click node_security_config "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/config/SecurityConfig.java"
click node_image_config "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/config/WebConfigForImages.java"
click node_product_entity "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/entity/Product.java"
click node_cart_item_entity "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/entity/CartItem.java"
click node_user_entity "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/entity/User.java"
click node_product_repository "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/repository/ProductRepository.java"
click node_cart_repository "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/repository/CartItemRepository.java"
click node_user_repository "https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/repository/UserRepository.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_auth_controller,node_product_controller,node_user_controller,node_auth_dto,node_product_dto,node_cart_dto,node_user_dto toneBlue
class node_product_service,node_product_service_impl,node_cart_service,node_image_config toneAmber
class node_auth_service,node_user_service,node_user_details,node_jwt_filter,node_jwt_util,node_security_config toneMint
class node_product_entity,node_cart_item_entity,node_user_entity,node_product_repository,node_cart_repository,node_user_repository toneRose
class node_application toneTeal
```

## Components

### API

- [Auth Controller](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/controller/AuthController.java): `src/main/java/com/example/controller/AuthController.java`
- [Product Controller](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/controller/ProductController.java): `src/main/java/com/example/controller/ProductController.java`
- [User Controller](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/controller/UserController.java): `src/main/java/com/example/controller/UserController.java`
- [Auth DTOs](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/dto/LoginRequest.java): `src/main/java/com/example/dto/LoginRequest.java`
- [Product Request DTO](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/dto/ProductRequestDto.java): `src/main/java/com/example/dto/ProductRequestDto.java`
- [Cart DTOs](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/dto/CartResponse.java): `src/main/java/com/example/dto/CartResponse.java`
- [User Request DTO](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/dto/UserRequest.java): `src/main/java/com/example/dto/UserRequest.java`

### Commerce

- [Product Service](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/ProductService.java): `src/main/java/com/example/service/ProductService.java`
- [Product Service Implementation](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/ProductServiceImplementation.java): `src/main/java/com/example/service/ProductServiceImplementation.java`
- [Cart Service](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/CartService.java): `src/main/java/com/example/service/CartService.java`
- [Image Web Configuration](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/config/WebConfigForImages.java): `src/main/java/com/example/config/WebConfigForImages.java`

### Identity and Security

- [Auth Service](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/AuthService.java): `src/main/java/com/example/service/AuthService.java`
- [User Service](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/UserService.java): `src/main/java/com/example/service/UserService.java`
- [User Details Service](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/service/CustomUserDetailsService.java): `src/main/java/com/example/service/CustomUserDetailsService.java`
- [JWT Filter](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/security/JwtFilter.java): `src/main/java/com/example/security/JwtFilter.java`
- [JWT Utilities](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/security/JwtUtil.java): `src/main/java/com/example/security/JwtUtil.java`
- [Security Configuration](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/config/SecurityConfig.java): `src/main/java/com/example/config/SecurityConfig.java`

### Domain and Persistence

- [Product Entity](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/entity/Product.java): `src/main/java/com/example/entity/Product.java`
- [Cart Item Entity](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/entity/CartItem.java): `src/main/java/com/example/entity/CartItem.java`
- [User Entity](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/entity/User.java): `src/main/java/com/example/entity/User.java`
- [Product Repository](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/repository/ProductRepository.java): `src/main/java/com/example/repository/ProductRepository.java`
- [Cart Item Repository](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/repository/CartItemRepository.java): `src/main/java/com/example/repository/CartItemRepository.java`
- [User Repository](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/repository/UserRepository.java): `src/main/java/com/example/repository/UserRepository.java`

### Other components

- [Application Entry](https://github.com/anubhavkumaro/jwtprojectwithvscode/blob/main/src/main/java/com/example/JwtProjectWithVsCodeApplication.java): `src/main/java/com/example/JwtProjectWithVsCodeApplication.java`
