Yes, it's my first project using Java & Spring Boot. This side project is part of a store's backend. It contains three endpoints; user creation, bill creation, and bill retrieving. This bill may have a discount. It depends on predefined rules based on user type and other conditions.
I built this code with the clean architecture and wrote well-defined unit tests. Also, I used a command and a factory pattern.
-
You need to have java installed on your system. You can get the Java from here.
-
You also need to have Postman installed if you want to test the endpoints yourself. Just download it from here.
-
What if you would like to run the unit tests? You can use your terminal or an IDE. For me, when it comes to IDE, I go with IntelliJ IDEA.
After installing Java and cloning the project, You can run it with:
./mvnw spring-boot:run
And for running the unit tests:
./mvnw test
For Windows users, change "./mvnw" to ".\mvnw".