ReadingIsGood is an online books retail firm which operates only on the Internet. Main
target of ReadingIsGood is to deliver books from its one centralized warehouse to their
customers within the same day.
- Spring Boot
- Spring Security
- Spring Data
- Spring Validation
- Postgresql
- Redis
- Lombok
- Swagger
- JWT
- RUN TYPE MAVEN
If you want to run project as a mvn, you need to clone project.
Then, you need postgresql and redis. To obtain these you can run docker-compose.yml which stored in ${PROJECT_DIR}\devops\locale\docker-compose.yml
Finally, prompt mvn clean install
then run ReadingIsGoodApplication.
- RUN TYPE DOCKER
If you want to run project as a fully dockerize, you need to clone project.
Then, you can run docker-compose.yml which stored in ${PROJECT_DIR}\devops\prod\docker-compose.yml
You don't need mvn because I already deploy project image to dockerhub
.
SWAGGER - POSTMAN
SWAGGER URL:http://localhost:8090/api/swagger-ui.html
POSTMAN COLLECTION: ${PROJECT_DIR}\Reading Is Good REST API.postman_collection.json
There are two user type in this project. First one is ADMIN
and the other one is CUSTOMER
. When the project runs, ADMIN
user created automaticly.
Admin Account Informations
Username = admin
Password = admin
You can login to system as a ADMIN with using these informations.
If you want to login as a CUSTOMER
, you need to create new account with using API POST - ${HOST}/api/customer
. Then you can login with new account.
ADMIN PERMISSIONS
- Create New Book
- Update Book Stock
- Get All Orders
- Get All Orders with Date Interval
CUSTOMER PERMISSIONS
- Get Customer Orders
- Create New Order
- Cancel Order
- Get Monthly Statistics