How faramarzaf/indish works
Main Components
a. API Layer
• UserController
• FoodPostController
• CommentController
• IngredientController
• WebController
b. Security Layer
• JWT Authentication Filter
• JWT Token Provider
• Security Config
• Custom User Details Service
c. Service Layer
• User Service
• Food Post Service
• Comment Service
• Ingredient Service
• Email Sender Service
• Confirmation Token Service
d. Data Access Layer
• User Repository
• Food Post Repository
• Comment Repository
• Ingredient Repository
• Role Repository
• Confirmation Token Repository
e. Database
• A database symbol showing the SQL database (evident from the SQL files in resources/db)
f. External Services
• An "External Services" section for:
• Email Service (indicated by EmailSenderService)
Component Relationships
• Client → API Controllers
• Controllers → Security Layer (for authentication)
• Controllers → Services
• Services → Repositories
• Repositories → Database
• Services → External Services
Cross-Cutting Concerns
• Exception Handling (GlobalExceptionHandler)
• DTO Mappers (UserMapper, FoodMapper, etc.)
• Utility Services (BadWordChecker, HashData)
Additional Elements
Symbols for:
• Configuration components (SwaggerConfig)
• Security filters
• Database migrations/seed data
• Entity relationships
Specific Implementation Details
Relationship between:
• Users and Food Posts
• Food Posts and Comments
• Food Posts and Ingredients
• Users and Roles