How b-mathali/coworking_space works
CoworkSpace is a coworking-seat reservation product: users find a space, choose a time slot and seat, then reserve it; paid bookings continue through Stripe Checkout, while free bookings confirm immediately. Admins manage spaces, seat plans, users, and reservations. The Angular frontend calls a NestJS API backed by MySQL, with notification and email capabilities. The README documents the main workflows; source excerpts show reservation rules, auth, and selected controller/service calls, but most frontend feature implementations and several backend services were not sampled.
Main entry points: app.routes.ts App routing · admin Admin console · reservations.service.ts Reservation rules · payments.service.ts Payment processing
Components 22
Angular client
- App routing
frontend/src/app/app.routes.ts - Login and account
frontend/src/app/features/auth - Space browsing
frontend/src/app/features/spaces - Seat booking
frontend/src/app/features/reservations - Admin console
frontend/src/app/features/admin - Auth client
frontend/src/app/core/services/auth.service.ts - Payment result
frontend/src/app/features/payments/payment-result/payment-result.component.ts
Booking domain
- Space API
backend/src/spaces/spaces.controller.ts - Seat map API
backend/src/seats/seats.controller.ts - Reservation API
backend/src/reservations/reservations.controller.ts - Reservation rules
backend/src/reservations/reservations.service.ts - Payments API
backend/src/payments/payments.controller.ts - Payment processing
backend/src/payments/payments.service.ts - PDF invoices
backend/src/payments/invoice.service.ts
Operations and identity
- Auth API
backend/src/auth/auth.controller.ts - Admin API
backend/src/admin/admin.controller.ts - Booking notifications
backend/src/notifications/booking-notifications.service.ts - User accounts
backend/src/users/entities/user.entity.ts
Persistence and integrations
- MySQL database
- Stripe
- SMTP email
Other components
- User or admin
Connections 32
- User or admin → App routing: uses
frontend/src/app/app.routes.ts - App routing → Login and account: routes to
frontend/src/app/app.routes.ts - App routing → Space browsing: routes to
frontend/src/app/app.routes.ts - App routing → Seat booking: routes to
frontend/src/app/app.routes.ts - App routing → Admin console: routes to
frontend/src/app/app.routes.ts - App routing → Payment result: routes to
frontend/src/app/app.routes.ts - Login and account → Auth client: uses
- Auth client → Auth API: calls
frontend/src/app/core/services/auth.service.ts - Space browsing → Space API: browses spaces
- Seat booking → Seat map API: loads seat map
README.md - Seat booking → Reservation API: submits booking
README.md - Admin console → Space API: manages spaces
README.md - Admin console → Seat map API: edits seat plan
README.md - Admin console → Admin API: manages users
README.md - Admin console → Admin API: views reservations
README.md - Admin API → Reservation rules: lists or cancels
backend/src/admin/admin.controller.ts - Reservation API → Reservation rules: delegates to
backend/src/reservations/reservations.controller.ts - Reservation rules → MySQL database: reads and writes
backend/src/reservations/reservations.service.ts - Reservation rules → Payment processing: creates payment record
backend/src/reservations/reservations.service.ts - Reservation rules → Booking notifications: notifies confirmation
backend/src/reservations/reservations.service.ts - Payments API → Payment processing: delegates to
backend/src/payments/payments.controller.ts - Payment processing → Stripe: checks out
README.md - Payment processing → MySQL database: updates payment
backend/src/payments/payments.service.ts - Payment result → Payments API: returns from checkout
README.md - Payment processing → PDF invoices: creates invoice
README.md - PDF invoices → Payment result: downloaded by user
README.md - Booking notifications → SMTP email: sends email
README.md - Booking notifications → MySQL database: stores notifications
- Auth API → User accounts: authenticates accounts
- Admin API → User accounts: manages accounts
backend/src/admin/admin.controller.ts - Space API → MySQL database: reads and writes
- Seat map API → MySQL database: reads and writes