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/shop
Using Maven plugin
First you should do clean installation:
$ mvn clean install
You can start application using Spring Boot custom command:
$ mvn spring-boot:run
Using Maven plugin and running JAR
You can create JAR file using:
$ mvn clean package
and then run it with:
$ java -jar target/*jar
ADMIN 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