This is Java Spring Boot REST API project using MySQL database, working with client-side website. I created this project to learn how to use Spring and Hibernate. I also wanted to learn about REST API and Test Driven Development. Project is still in progress and I am learning new technologies.
- Hibernate
- JPA
- Spring
- Spring Data
- Spring Boot (v2.4.2)
- Spring Security
- Spring Session
- Jackson
- MySQL
- JUnit - in future
- Shop have session and authorisation system
- Users get roles - customers and merchants (in progress)
- Merchants are able to manage customer orders and to add new items to shop
- Customers have money ballance and be able to see their orders details (in progress)
- Customers are able to chat with merchants (in progress)
- Unit tests (in progress)
- Clone repository https://github.com/krzyb5081/Java-Spring-Shop.git
- Install lombok plugin (https://projectlombok.org/download)
- Setup MySQL server and create database (you can use XAMPP for example - https://www.apachefriends.org)
- Change database connection settings in Java-Spring-Shop/src/main/resources/application.properties
- Edit spring.datasource.url=jdbc:mysql://[host]:[port]/[database name] - for example jdbc:mysql://localhost:3306/shop_db
- Edit spring.datasource.username=[database username]
- Edit spring.datasource.password=[database password]
- Save changes
- Select Java-Spring-Shop/src/main/java/com/shop/project/ShopApplication.java and run as Java Application -> Spring Boot Application