- 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
- 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...
To make it work go to Edit Configurations/Edit Configuration Templates/JUnit and add:
-Dspring.profiles.active=testin the VM options- In the environment variables:
LOG_LEVEL=DEBUG- or any otherCOOKIE_NAME=dgshopserver- name of the cookieJWT_SECRET=String which is your secret to compute HMAC SHA key for JWTJWT_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