How hsalehs2005-cis/mala3bi-platform works
Mala3bi is a sports-field booking platform for players, field owners, academies, and administrators. Players discover fields and available slots, book and pay (or choose cash), and can use social booking rooms; owners and administrators manage listings, schedules, payments, and operations. The README documents broader capabilities than the sampled server excerpts, so those are represented at the documented subsystem level. Most REST workflows reside in the single large src/Index.js; the graph does not imply separate implementation modules for them.
Main entry points: Index.js REST API · whatsapp.js WhatsApp messaging · index.html Player web app · Stadium admin.html Owner dashboard
Components 19
Web clients
- Player web app
public/index.html - Owner dashboard
public/Stadium admin.html
Booking platform
- REST API
src/Index.js - Accounts and access
src/Index.js - Field discovery
src/Index.js - Bookings and rooms
src/Index.js - Payment processing
src/Index.js - Academy subscriptions
src/Index.js
Management
- Field operations
src/Index.js - Platform administration
src/Index.js - MySQL data
database/schema.sql
Messaging
- WhatsApp messaging
src/whatsapp.js - Email delivery
src/Email.js
Other components
- Players
- Stadium owners
- Administrators
- Moyasar
- WhatsApp Cloud API
- Resend
Connections 19
- Players → Player web app: use
README.md - Stadium owners → Owner dashboard: manage fields
README.md - Administrators → Player web app: administer
README.md - Player web app → REST API: requests
README.md - Owner dashboard → REST API: requests
README.md - REST API → Accounts and access: handles access
README.md - REST API → Field discovery: serves discovery
README.md - REST API → Bookings and rooms: handles booking
README.md - REST API → Payment processing: handles payment
README.md - REST API → Academy subscriptions: serves subscriptions
README.md - REST API → Field operations: serves operations
README.md - REST API → Platform administration: serves administration
README.md - REST API → MySQL data: queries data
src/Index.js - Payment processing → Moyasar: verifies payments
README.md - REST API → WhatsApp messaging: invokes
src/Index.js - REST API → Email delivery: invokes
src/Index.js - WhatsApp messaging → MySQL data: reads booking data
src/whatsapp.js - WhatsApp messaging → WhatsApp Cloud API: sends messages
src/whatsapp.js - Email delivery → Resend: sends email
src/Email.js