Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NihatQuliyev authored Oct 29, 2023
1 parent 911d6e5 commit 3feed79
Showing 1 changed file with 90 additions and 7 deletions.
97 changes: 90 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,22 @@
- Mapstruct
- Lombok
- Validation
- Security
- JWT
- Docker

# Structure
![drow](https://github.com/NihatQuliyev/trading-management-system/assets/116736363/ba70107d-bc77-4a89-ad2b-dc06c94d39d3)
![elchin](https://github.com/NihatQuliyev/trading-management-system-with-jwt/assets/116736363/1088e708-fd3d-459c-b5c2-62c37385c55a)



# Endpoint

**User**
- http://localhost:8080/trading/user/registration [POST]
- http://localhost:8080/trading/user/login [GET]
- http://localhost:8080/trading/user/refresh-token [POST]

**Category**
- http://localhost:8080/trading/category/registration [POST]
- http://localhost:8080/trading/category/all-category [GET]
Expand All @@ -44,13 +53,87 @@
- http://localhost:8080/trading/product/{id} [GET]
- http://localhost:8080/trading/product/{id} [PUT]
- http://localhost:8080/trading/product/{id} [DELETE]
#
- Swagger endpoint show
![endpoint](https://github.com/NihatQuliyev/trading-management-system/assets/116736363/e853d49c-34b7-4516-bf78-8f8822456e7a)

<br>
<br>

**Docker**
<br>
"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."

<br>
<br>

![Screenshot (179)](https://github.com/NihatQuliyev/trading-management-system-with-jwt/assets/116736363/c71029eb-a518-416d-8e0f-89d44a214b6c)

<br>
<br>

**Security and Jwt**
<br>
<br>
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.

<br>
<br>

![jwt](https://github.com/NihatQuliyev/spring-security-jwt/assets/116736363/7becbadf-a3a5-4c1b-9b7a-65f375020cde)

<br>
**User registration**
<br>

![Screenshot (169)](https://github.com/NihatQuliyev/trading-management-system-with-jwt/assets/116736363/8c046cf5-57f1-4d9d-a4f2-3e29a0b601c5)

<br>
<br>

**User refresh-token**
<br>

![Screenshot (177)](https://github.com/NihatQuliyev/trading-management-system-with-jwt/assets/116736363/be4e2769-31f7-4aa2-a35e-1d6b73e503fb)

<br>
<br>

**User login**
<br>

![Screenshot (170)](https://github.com/NihatQuliyev/trading-management-system-with-jwt/assets/116736363/0015c352-3a60-4b6c-a998-f183a8f48d88)


<br>
<br>

**Category registration**
<br>

![Screenshot (171)](https://github.com/NihatQuliyev/trading-management-system-with-jwt/assets/116736363/06c2e1f7-02bb-4f0f-ac19-15b17abaa4a6)

<br>
<br>

**Product registration**
<br>

![Screenshot (173)](https://github.com/NihatQuliyev/trading-management-system-with-jwt/assets/116736363/f9afc53a-71a9-471f-83c9-a6de6aea3359)

<br>
<br>

**Product Show**
<br>

![Screenshot (174)](https://github.com/NihatQuliyev/trading-management-system-with-jwt/assets/116736363/86299fca-29c3-4357-9e18-e030556b0550)

<br>
<br>
**Product Update**
<br>
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.
<br>
<br>

# Jar Building
- jar name: trading-management-service-0.0.1-SNAPSHOT.jar
![building](https://github.com/NihatQuliyev/trading-management-system/assets/116736363/37db3514-a97b-490f-8ba7-475e9a09c68b)
![Screenshot (175)](https://github.com/NihatQuliyev/trading-management-system-with-jwt/assets/116736363/11a5d606-3c63-4a1d-98ba-882d58a9d245)


0 comments on commit 3feed79

Please sign in to comment.