How legooh/devpool works
GoTicket is a full-stack user-management application: a browser UI supports user CRUD, search, status changes and feedback, while an Express REST API validates requests, applies user rules and stores records in JSON. The graph preserves the main UI-to-API-to-storage workflow and the documented validation, password hashing, UUID, CORS and health-check capabilities. Source excerpts show the principal backend calls; README statements support documented features whose implementation was not sampled.
Main entry points: src/app.js Express app · userService.js User service · public/app.js User dashboard · userRoutes.js User routes
Components 13
Browser interface
- User dashboard
public/app.js
REST API
- Server startup
src/server.js - Runtime config
src/config.js - Express app
src/app.js - User routes
src/routes/userRoutes.js - Error handling
src/middleware/errorHandler.js
User domain
- User service
src/services/userService.js - Payload validation
src/validators/userValidator.js - Application errors
src/errors/AppError.js
Persistence
- User repository
src/repositories/fileUserRepository.js - Users JSON file
data
Other components
- User
- BCrypt library
Connections 16
- User → User dashboard: uses dashboard
README.md - User dashboard → User routes: calls users API
public/app.js - Server startup → Runtime config: loads settings
src/server.js - Server startup → Express app: starts app
src/server.js - Express app → User repository: initializes
src/app.js - Express app → User routes: mounts routes
src/app.js - Express app → Error handling: registers handlers
src/app.js - Express app → User dashboard: serves static UI
src/app.js - User routes → User service: dispatches requests
src/routes/userRoutes.js - User service → Payload validation: validates payload
src/services/userService.js - User service → User repository: reads and writes
src/services/userService.js - User service → BCrypt library: hashes passwords
README.md - User repository → Users JSON file: reads and writes
README.md - Payload validation → Application errors: raises validation errors
src/validators/userValidator.js - User service → Application errors: raises domain errors
src/services/userService.js - Error handling → Application errors: formats errors
src/middleware/errorHandler.js