The Ecommerce Products and Services program is designed to provide a robust and scalable solution for managing products in online marketplaces. This service enables key operations such as listing, adding, editing, and deleting products. It ensures seamless integration with existing ecommerce platforms. with automated and streamlined product management This project addresses critical needs for operational efficiency. Better accuracy and faster product deployment in the competitive e-commerce sector.
This is a product management system built using Java, SQL,NoSQL Spring Boot and Maven.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Java 8 or higher
- Maven
- SQL ,NoSQL database
- Clone the repository
git clone https://github.com/alaminskofficial/ProductService-LLD.git
api postman collection link :
https://api.postman.com/collections/33330094-f3166d77-7483-4ab3-9038-a460016d2a93?access_key=PMAT-01HX1KY257FWSGSJ7BVSASDRQF- Navigate to the project directory
cd product-management-system3.install the maven dependencies
mvn clean install- Run the application
mvn spring-boot:run- The application will be accessible at
http://localhost:8080
API Endpoints
The application provides the following endpoints:
GET /product: Test endpoint, returns a greeting from the product service.
GET /getproducts?pageNo={pageNo}&pageSize={pageSize}: Returns a paginated list of products sorted by price.
GET /products: Returns a list of all products whose name starts with "S".
GET /products/search?name={name}: Returns a product with the given name.
GET /product/{id}: Returns a single product with the given ID.
GET /products/categories: Returns a list of all product categories.
GET /products/category/{id}: Returns a list of all products in the given category.
POST /products: Adds a new product.
GET /products/{productId}/reviews : to retrieve reviews for a product
POST /products/{productId}/reviews : add a review with image upload Using MongoDB GridFS
GET /image/{fileId} : to download the review image
Built With Java Spring Boot Maven SQL Postman
Authors
Sk Alamin