How boujam/product works
This appears to be a product-catalog CRUD application for books, DVDs, and video games. The visible workflow is a user selecting an operation and product type in the browser, submitting a request to the API, then viewing a result. The frontend excerpt shows CRUD requests and client-side validation; the tree indicates Java API, service, validation, schema, and persistence layers. Backend connections are shown as unverified because their source was not sampled and the README provides no architectural detail.
Main entry points: ProductController.java Product API · app.js CRUD interface · ProductService.java Product service · JsonRequestValidator.java Request validation
Components 13
Browser interface
- CRUD interface
src/main/resources/static/js/app.js
API and services
- Product API
src/main/java/com/example/myproject/demo/controller/ProductController.java - Demo API
src/main/java/com/example/myproject/demo/controller/DemoController.java - Product service
src/main/java/com/example/myproject/demo/service/ProductService.java - Request validation
src/main/java/com/example/myproject/demo/service/JsonRequestValidator.java - Schema loading
src/main/java/com/example/myproject/demo/service/JsonSchemaService.java - Type schemas
src/main/java/com/example/myproject/demo/schema - Product requests
src/main/java/com/example/myproject/demo/dto/ProductRequest.java - Typed requests
src/main/java/com/example/myproject/demo/dto
Catalog data
- Product repository
src/main/java/com/example/myproject/demo/repository/ProductRepository.java - Product model
src/main/java/com/example/myproject/demo/entity/Product.java - Catalog types
src/main/java/com/example/myproject/demo/entity
Other components
- User
Connections 11
- User → CRUD interface: uses
- CRUD interface → Product API: sends CRUD requests
src/main/resources/static/js/app.js - Product API → Product service: delegates to
- Product API → Request validation: validates requests
- Request validation → Schema loading: uses schemas
- Schema loading → Type schemas: loads schemas
- Product API → Product requests: accepts requests
- Product API → Typed requests: accepts typed requests
- Product service → Product repository: accesses data
- Product repository → Product model: stores products
- Product model → Catalog types: specialized as