-
Welcome to the Trade Control System (TMS) README. This document provides an overview of the TMS application, its features, installation instructions, and usage guidelines. This project is a Spring Boot application designed to manage product, category, and supplier-related operations in a PostgreSQL database.
The TMS application offers a comprehensive set of features to facilitate effective management of various aspects of your business.
-
Product Management: This tool provides users with the ability to exercise complete authority over their product inventory. It simplifies the processes of product listing, updating, and removal, offering invaluable assistance to businesses aiming to streamline their inventory management.
-
Category Handling: Through this feature, users can easily create, modify, and eliminate product categories. Furthermore, products can be linked with one or multiple categories, streamlining the process of filtering and searching for specific items.
-
Supplier Management: This utility allows businesses to effectively oversee their associations with suppliers. Users can add, revise, or remove supplier details as necessary, and they can conveniently connect products with their relevant suppliers, ensuring swift access to supplier information when required.
-
Data Integrity and Verification: To enhance data precision and reliability, this system incorporates customized validation regulations.
- IDE - Intellij Idea
- JDK - 17
- Spring Web - 2.7.14
- Spring Data Jpa
- Poatgresql
- Mapstruct
- Lombok
- Validation
- Security
- JWT
User
- http://localhost:8080/tms/user/registration [POST]
- http://localhost:8080/tms/user/login [POST]
- http://localhost:8080/tms/user/refresh-token [GET]
Category
- http://localhost:8080/tms/category/registration [POST]
- http://localhost:8080/tms/category/all-categories [GET]
Supplier
- http://localhost:8080/tms/supplier/registration [POST]
- http://localhost:8080/tms/supplier/all-suppliers [GET]
Supplier
- http://localhost:8080/tms/product/registration [POST]
- http://localhost:8080/tms/product/all-products [GET]
- http://localhost:8080/tms/product/{id} [GET]
- http://localhost:8080/tms/product/{id} [PUT]
- http://localhost:8080/tms/product/{id} [DELETE]
Security and Jwt
The project is secured using JWT (JSON Web Token) technology. Initially, the user signs up, and during this process, the user is provided with an access token and a refresh token. When the user validates their registration with the email address they provided during the sign-up, the user's account is activated. Until the access token's expiration time (token duration), the user can access API endpoints such as product, supplier, and category. When the access token expires, the user can obtain a new access token by using the login endpoint to refresh their access token.
**User registration**
User refresh-token
User login
Category registration
Product registration
Product Show
**Product Update**
When updating the product, you can modify the desired fields while leaving the others unchanged. For example, in this case, the "price" has been modified.