How enthonydev/rest-event-management-api works
Event Management API supports event and catalog management, user registration and JWT login, and authenticated order creation with server-side pricing and availability checks. The main workflow is a user working in the /ui panel, which calls the Express API; handlers validate requests, apply domain rules, and use the current in-memory store. The README also describes a Prisma schema as planned persistence, not as the runtime store. The backend is concentrated in src/app.ts; unsampled order-handler details are represented only at the documented capability level.
Main entry points: app.ts Express App · app.js Web Panel · server.ts HTTP Server · openapi.yaml OpenAPI Contract
Components 12
Client
- Web Panel
public/app.js
HTTP API
- HTTP Server
src/server.ts - Express App
src/app.ts - Request Validation
src/app.ts
Domain Operations
- Event Management
src/app.ts - Ticket And Product Catalog
src/app.ts - Registration And Login
src/app.ts - Order Management
src/app.ts
Persistence And Contract
- In-Memory Store
src/app.ts - Relational Schema
prisma/schema.prisma - OpenAPI Contract
docs/openapi.yaml
Other components
- API User
Connections 14
- API User → Web Panel: uses
README.md - Web Panel → Express App: calls API
public/app.js - HTTP Server → Express App: starts
src/server.ts - Express App → Web Panel: serves
src/app.ts - Express App → OpenAPI Contract: serves
src/app.ts - Express App → Request Validation: validates requests
src/app.ts - Express App → Event Management: routes event requests
src/app.ts - Express App → Ticket And Product Catalog: routes catalog requests
src/app.ts - Express App → Registration And Login: routes auth requests
src/app.ts - Express App → Order Management: routes order requests
README.md - Event Management → In-Memory Store: reads and writes
src/app.ts - Ticket And Product Catalog → In-Memory Store: reads and writes
src/app.ts - Registration And Login → In-Memory Store: reads and writes
src/app.ts - Order Management → In-Memory Store: uses runtime store
src/app.ts