🏪 Store House Management System API ecommerce.BableshAAzad.com
- This project is a RESTful web service built using Spring Boot.
- It allows storing products in warehouses, which can be used by e-commerce applications. For a demo, visit ecommerce.BableshAAzad.com.
- The project is based on basic warehouse management principles.
- You can integrate this project with other e-commerce applications to simplify inventory management and tracking.
📜 API Documentation:
- View API postman requests and responses: store-house-management-system
- View ecommerce shopping app frontEnd documentation ecommerce-shopping-app-ui
- View ecommerce shopping app api documentation ecommerce-shopping-app-api
🏠 Features:
- Store and manage inventories.
- Generate purchase orders.
- Allow sellers to lease space for storing inventories.
- Automatically manage records and space utilization.
- Search for warehouses based on proximity to your location.
🧑💻 Technologies Used:
Spring Boot
Spring Security
RESTful API
MySQL
Spring-data-jpa
OpenAPI Documentation
Validation
OpenPDF
HATEOAS
💻 How To Use:
- You can directly access the service via https://store-house-management-system.onrender.com.
- Refer to the API documentation for guidance on sending requests and handling responses: store-house-management-system.
- Pull the Docker image:
bableshaazad/storehousemanagementsystem
. - Refer to the API documentation for guidance on sending requests and handling responses: store-house-management-system.
- Set the necessary environment variables as shown below 👇.
- Download the master branch as a zip file.
- Import the project into your IDE and ensure JDK 21 is installed.
- Set the following environment variables: 🔐
DB_HOST_NAME
= localhostDB_NAME
= store-house-management-systemDB_PASSWORD
= rootDB_PORT
= 3306DB_USERNAME
= root
- Refer to the API documentation for guidance on sending requests and handling responses: store-house-management-system.
- For swagger documentation
http;//localhost:8080/swagger-ui.html
-
Find Products:
Endpoint:
GET http://localhost:8081/inventories?page=0&size=1
Response:
{
"status": 200,
"message": "Inventories found",
"data": {
"links": [],
"content": [
{
"inventoryId": 1,
"productTitle": "Chair",
"lengthInMeters": 0.7,
"breadthInMeters": 0.8,
"heightInMeters": 0.8,
"weightInKg": 8,
"price": 300,
"description": "Chair for general use",
"productImage": "http://res.cloudinary.com/dpaf0bjfx/image/upload/c_fill,h_500,w_500/85010851-aafe-4d8e-9146-69e6b1b5c516",
"materialTypes": ["WOOD"],
"restockedAt": "2024-08-27",
"updatedInventoryAt": null,
"sellerId": 1,
"stocks": [
{
"stockId": 5,
"quantity": 10
}
],
"discount": 2,
"discountType": "NEW"
}
],
"page": {
"size": 1,
"totalElements": 12,
"totalPages": 12,
"number": 0
}
}
}
- For Client Registration Endpoint
http://localhost:8081/clients/register
{
"businessName" : "Bableshaazad.com",
"email" : "bableshaazad@bableshaazad.com",
"contactNumber" : 7898300815
}
{
"status": 201,
"message": "Client Created",
"data": {
"apiKey": "29e420c3-7a6a-47d7-9342-3b3ebdcbe394",
"username": "bableshaazad@bableshaazad.com",
"clientId": 2
}
}