Hệ thống quản lý kho hàng toàn diện và an toàn được xây dựng bằng Java Spring Boot , MongoDB và xác thực JWT .
Dự án này giúp các doanh nghiệp quản lý sản phẩm hiệu quả, theo dõi mức tồn kho và giám sát đơn hàng thông qua kiến trúc backend có khả năng mở rộng và mô-đun hóa .
XEM THÊM ==> Hướng dẫn cài đặt chi tiết
Nguồn: Sharecode.vn
Cài đặt các gói phụ thuộc:
This project uses Maven for dependency management. Run the following command to install the dependencies:
mvn clean install
Cấu hình MongoDB:
Make sure you have MongoDB installed and running locally or use a MongoDB Atlas cloud instance.
Update the application.properties file to include your MongoDB connection details.Cấu hình mã bí mật JWT:
Add your JWT secret key in the application.properties or application.yml file for secure token generation.
Example:
jwt.secret=your-secret-key
jwt.expiration=3600
Chạy ứng dụng: Để khởi động ứng dụng, hãy chạy lệnh sau:
mvn spring-boot:run
The application will run on http://localhost:8086
Điểm cuối:
GET /user/productList: Get all products in the inventory.
POST /user/addProduct: Add a new product to the inventory.
PUT /user/editProduct/{productId}: Update an existing product's details.
[pending] DELETE /api/products/{id}: Delete a product from the inventory.