This repository contains code for managing products in a Dockerized blog application.
The Docker-Blog application is designed to handle product management operations such as creating, updating, retrieving, and deleting products. It consists of several components including controllers, services, repositories, DTOs (Data Transfer Objects), entities, and an exception handler.
- ProductController: Handles HTTP requests related to products.
- ProductService: Provides business logic for managing products.
- ProductRepository: Interface for interacting with the database for product entities.
- ProductDto: Represents the request model for creating or updating a product.
- ExceptionDto: Represents the response model for handling exceptions.
- ProductEntity: Represents a product in the system.
- InvalidProductIdException: Custom exception class to indicate that the product ID provided is invalid.
- ProductNotFoundException: Custom exception class to indicate that a product was not found.
- GlobalExceptionHandler: Global exception handler to manage exceptions across the application.
To run this application locally:
- Clone this repository:
git clone https://github.com/your-username/Docker-Blog.git