Online book retail system
There are 3 domain model classes
- Book - Represents the book with its quantity in the storage
- Customer - Represents the customer which can order books.
- EBookStoreOrder - Represents a customer order having list of books and their total price.
There are 4 controller
- BookController - Able to save a new book to system and retrieve books from the system.
- CustomerController - Able to save a new customer to system and retrieve customers from the system.
- OrderController - Able to create a new order, retrieve a customer's all orders, retrieve a specific order and retrieve orders by date interval
- StatisticsController - Able to get monthly order statistics for customer(s)
Java 11, Maven, Spring Boot, H2, Docker
Prereq: Docker should be installed in your system.
After navigating the folder where Dockerfile exists, you can run these commands:
docker build -t ebookstore:latest
docker run -p 8181:8181 ebookstore:latest
They can be found in the file EBookApplication.postman_collection
If post requests are sent in order, there will not be any change in any ID in request params.