Skip to content

tof3r/shopserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample REST API for ecommerce shop


Technology Stack:

  • Java 21
  • Spring Boot 3.5.0
  • Spring MVC
  • Spring Data JPA
  • Spring Security
  • Lombok 1.18.36
  • Flyway 11.9.0
  • JWT 0.12.6
  • Hibernate Validator 8.0.1
  • (Testing) H2 database 2.3.232
  • (Testing) Spring Security Test

Basic functionalities:

  • Creating and managing products
  • Creating and managing product categories
  • Authorize safely using JWT
  • Creating and managing users
  • Placing and managing orders and payments

To be done:

  • Adding Swagger
  • more functionalities...
  • more improvements...

[DEV]

To make it work go to Edit Configurations/Edit Configuration Templates/JUnit and add:

  1. -Dspring.profiles.active=test in the VM options
  2. In the environment variables:
    1. LOG_LEVEL=DEBUG - or any other
    2. COOKIE_NAME=dgshopserver - name of the cookie
    3. JWT_SECRET= String which is your secret to compute HMAC SHA key for JWT
    4. JWT_TTL_HOURS= number of hours for how long the JWT token is valid

NOTE: all the environment variables must be separated by semicolon ; in one line

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages