How quanghoatb/book-management works
Project type and purpose
• This is a NestJS‑based monorepo containing two backend microservices (auth‑service and book‑service), a simple gateway for Swagger integration, and a shared library (auth‑common).
• Its purpose is to offer authentication and book‑management APIs in a microservices architecture, with common authentication utilities factored out into a shared lib.
File structure
• Top level:
• apps/ : contains auth‑service and book‑service NestJS applications
• gateway/ : holds a minimal Swagger gateway project
• libs/auth‑common/ : shared authentication utilities (decorators, interfaces, guards)
• pnpm workspace and TS configs for monorepo management
• Each service has its own src/ folder with modules (auth, users, books), controllers, services, entities, DTOs, and main.ts entry point.
• No UI folder—this is a purely server‐side system.
• No explicit database config files here, but presence of “*.entity.ts” implies each service uses an ORM (likely TypeORM) and a backing database.
README
• It confirms a multi‐app Nest workspace using pnpm.
Elements
• Client → Gateway (API request)
• Gateway → Auth Service / Book Service
• Services → their respective databases
• Services → Shared Auth Lib (dependency link)
• One for microservices
• One for shared libraries