Rental is one of the services that makes PD Library.
It keeps track of who and when rented a book. It provides functionalities for renting, reserving and returning a book. It is not concerned by the book metadata, like authors, titles, etc. It only cares about rental aspect of books.
- REST API served over Gateway
- Protected by the User Profile JWT token issued by the PD Library User Profile service
- Mongo database
- Kafka
Dependencies can be run from Infrastructure project, by docker compose scripts.
Locally, application can be started in two ways.
- From source code
- From latest published Docker image
Suitable when developing features in this project.
- Set Spring Profile to local by following these steps:
- Open "Edit Configurations"
- in the section "Library Application" find the field "Program arguments";
- enter the following command: --spring.profiles.active=local
- Press Run or Debug Library Application
Suitable when developing features in other projects, and you need this one as a dependency.
For this purpose see Infrastructure project.