As part of my graduation project, I implemented an online-store using Spring. In the project I used Spring Boot, Spring Security 5, Spring Data JPA with MySql database, for views I used Thymeleaf template and Bootstrap CSS framework. Tests are made on JUnit 5 with test H2 database. For accelerated development, I used Spring BootDevTools.
You can clone this repository and use it localy:
$ git clone https://github.com/Vitaly2022/shopUsing Maven plugin
First you should do clean installation:
$ mvn clean installYou can start application using Spring Boot custom command:
$ mvn spring-boot:runUsing Maven plugin and running JAR
You can create JAR file using:
$ mvn clean packageand then run it with:
$ java -jar target/*jarADMIN role is assigned by MySql query.
The USER role is given to all registered.
ADMIN In personal account, can add, edit and delete site content (product, category, manufacturer, order, review, supplier, user).
USER can add, edit and delete products in cart. Send cart to order. In personal account see your orders and their status. Edit profile.
You can run tests using:
$ mvn test
