Skip to content

LibraryBookingSystem/catalog-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

catalog-service

Library resource catalog (seats, rooms, equipment) for the Library Booking System. Serves filtered search and admin CRUD, publishes resource.events, and listens to booking events to keep availability aligned without coupling every read to booking-service.

Role in the system

flowchart LR
  Client --> GW[api-gateway]
  GW --> CAT[catalog-service]
  CAT --> PG[(catalog_db)]
  BOOKQ[booking.events] --> CAT
  CAT --> RESQ[resource.events]
Loading

API (via gateway)

Base path: http://localhost:8080/api/resources

Method Path Description
GET / List resources (type, floor, status, search)
GET /{id} Resource by id
POST / Create resource (admin)
PUT /{id} Update resource (admin)
DELETE /{id} Delete resource (admin)
GET /health Health check

Stack

  • Java 17, Spring Boot 3.5
  • JPA (PostgreSQL), AMQP, Spring Security, AOP, JJWT
  • common-aspects

Configuration

Variable Purpose
DB_* PostgreSQL (catalog_db in Compose)
RABBITMQ_* Consume booking events; publish resource events
JWT_SECRET, JWT_EXPIRATION Protected routes

HTTP port 3003.

Run locally

cd docker-compose
docker compose up -d catalog-service

Related repositories

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors