Skip to content

NihatQuliyev/trading-management-system

Repository files navigation

Trading Management System

Introduction

  • 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.

Technology

  • IDE - Intellij Idea
  • JDK - 17
  • Spring Web - 2.7.14
  • Spring Data Jpa
  • Poatgresql
  • Mapstruct
  • Lombok
  • Validation
  • Security
  • JWT
  • Docker

Structure

elchin

Endpoint

User

Category

Supplier

Supplier



Docker
"After completing the project, we can create Docker images of the Postgres and service using the Dockerfile and docker-compose.yml configurations. Then, we deploy them as Docker containers. Finally, we keep the server running within the container."



Screenshot (179)



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.



jwt


**User registration**

Screenshot (169)



User refresh-token

Screenshot (177)



User login

Screenshot (170)



Category registration

Screenshot (171)



Product registration

Screenshot (173)



Product Show

Screenshot (174)



**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.

Screenshot (175)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages