Inventory is one of the services that makes PD Library.
Keeps track of how many copies of the book the Library has and how many copies are rented. It can be considered as a physical place where books are held. Bookshelves are currently placed in ProductDock's cantina.
- 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.