How ameerhu/rticketsys works
RTicketSys pairs a React registration interface with a LoopBack REST backend for users, slots, and their association. The visible user flow begins in the UI and reaches signup/login endpoints; the frontend-to-backend submission itself is not shown, so that link is marked unverified. Backend controllers delegate CRUD operations to repositories, which use the configured datasource. Authentication is configured through the application, with user verification and JWT services. Several controller and runtime relationships are based on excerpts; unsampled paths are not inferred beyond documented structure.
Main entry points: user.repository.ts User repository · user.controller.ts User endpoints · application.ts LoopBack application · slot.repository.ts Slot repository
Components 17
Web interface
- Ticket app
front-end/src/App.js - Registration form
front-end/src/Register.js
Backend runtime
- LoopBack application
back-end/src/application.ts - REST sequence
back-end/src/sequence.ts - Database datasource
back-end/src/datasources/db.datasource.ts
User and slots
- User endpoints
back-end/src/controllers/user.controller.ts - Slot endpoints
back-end/src/controllers/slot.controller.ts - User-slot endpoints
back-end/src/controllers/user-slot.controller.ts - Slot-user endpoints
back-end/src/controllers/slot-user.controller.ts - User model
back-end/src/models/user.model.ts - Slot model
back-end/src/models/slot.model.ts - User repository
back-end/src/repositories/user.repository.ts - Slot repository
back-end/src/repositories/slot.repository.ts
Authentication
- JWT strategy
back-end/src/a-strategy/jwt-strategy.js - User service
back-end/src/services/user-service.js - JWT service
back-end/src/services/jwt-service.js
Other components
- Visitor
Connections 22
- Visitor → Ticket app: uses
- Ticket app → Registration form: renders
front-end/src/App.js - Registration form → User endpoints: submits signup
- LoopBack application → REST sequence: configures
back-end/src/application.ts - LoopBack application → JWT strategy: registers
back-end/src/application.ts - LoopBack application → JWT service: binds
back-end/src/application.ts - LoopBack application → User service: binds
back-end/src/application.ts - Visitor → User endpoints: calls REST
back-end/src/controllers/user.controller.ts - Visitor → Slot endpoints: calls REST
back-end/src/controllers/slot.controller.ts - Visitor → User-slot endpoints: calls REST
back-end/src/controllers/user-slot.controller.ts - User endpoints → User repository: queries
back-end/src/controllers/user.controller.ts - User endpoints → User service: verifies credentials
back-end/src/controllers/user.controller.ts - User endpoints → JWT service: generates token
back-end/src/controllers/user.controller.ts - Slot endpoints → Slot repository: queries
back-end/src/controllers/slot.controller.ts - User-slot endpoints → User repository: uses slot relation
back-end/src/controllers/user-slot.controller.ts - User repository → Database datasource: persists users
back-end/src/repositories/user.repository.ts - Slot repository → Database datasource: persists slots
back-end/src/repositories/slot.repository.ts - User service → User repository: looks up user
back-end/src/services/user-service.js - User repository → Slot repository: creates relation
back-end/src/repositories/user.repository.ts - Slot repository → User repository: resolves owner
back-end/src/repositories/slot.repository.ts - User model → Slot model: has one slot
back-end/src/models/user.model.ts - JWT strategy → JWT service: verifies token