Tera Trav TMS
A modern, high-performance booking platform for tours, hotels, and travel services.
منصة حجز حديثة وعالية الأداء للجولات والفنادق وخدمات السفر.
What is this?
ما هذا؟
The TERATRAVEL Platform is an enterprise-grade Tourism Management System (TMS). It acts as a comprehensive booking platform for tours, hotels, and travel services, tailored for high-performance and strict data integrity. The architecture is explicitly split into internal (Employee) and external (Customer) domains to maintain robust security and strict operational boundaries.
منصة TERATRAVEL هي نظام إدارة سياحة (TMS) للمؤسسات. تعمل كمنصة حجز شاملة للجولات والفنادق وخدمات السفر، مصممة للأداء العالي وسلامة البيانات الصارمة. تم تقسيم الهندسة البرمجية بوضوح إلى مجالات داخلية (للموظفين) وخارجية (للعملاء) للحفاظ على أمن قوي وحدود تشغيلية صارمة.
What it does
ماذا يفعل؟
The system orchestrates highly complex logistics and inventory management for the tourism industry. It handles:
يقوم النظام بتنسيق الخدمات اللوجستية وإدارة المخزون المعقدة للغاية لقطاع السياحة. حيث يتعامل مع:
- Inventory Management: Tracks real-time inventory for over 500+ vehicles, preventing race conditions during high-traffic booking windows.
- High-Volume Bookings: Manages 2,000+ monthly bookings seamlessly.
- Internal Dashboard Operations: Provides internal staff with secure access to employee permissions, activity logs, and auditing through a strict domain-driven architecture.
- Customer Portal: Offers a consumer-facing interface for bookings, registration, payment history, and profile management.
- إدارة المخزون: تتبع المخزون في الوقت الفعلي لأكثر من 500 مركبة، مما يمنع حدوث مشاكل تزامن البيانات أثناء فترات الحجز المزدحمة.
- حجوزات عالية الحجم: إدارة أكثر من 2000 حجز شهري بسلاسة.
- عمليات لوحة التحكم الداخلية: توفر للموظفين الداخليين وصولاً آمناً إلى صلاحيات الموظفين، وسجلات النشاط، والتدقيق من خلال بنية برمجية صارمة موجهة للمجالات.
- بوابة العملاء: تقدم واجهة مواجهة للمستهلكين لإجراء الحجوزات والتسجيل وتاريخ الدفع وإدارة الملف الشخصي.
What I did in it
ماذا فعلت فيه؟
I contributed to the system's architecture and development as a Full Stack Engineer:
ساهمت في البنية البرمجية للنظام وتطويره كمهندس Full Stack:
- System Architecture: I established the core "Thin Controllers, Fat Services" architecture in Next.js 15, ensuring a strict boundary between the Request Layer, Business Logic, and Data Access.
- Database Design: Designed the PostgreSQL schemas via Prisma, structuring it to support future multi-tenancy and utilizing database transactions to guarantee atomic operations across related entities.
- API Development: Engineered type-safe APIs using Zod for strict request validation, filtering out bad data before it ever reaches the service layer.
- Domain Segregation: Partitioned the application into Employee and Customer domains with distinct authentication strategies (JWTs vs OAuth/Cookies) to prevent privilege escalation.
- Performance Optimization: Integrated Redis (Upstash) for caching and rate-limiting, and utilized React Server Components to minimize client-side overhead.
- بنية النظام: قمت بتأسيس بنية "Thin Controllers, Fat Services" الأساسية في Next.js 15، مما يضمن وجود حدود صارمة بين طبقة الطلبات ومنطق العمل والوصول إلى البيانات.
- تصميم قاعدة البيانات: تصميم مخططات PostgreSQL عبر Prisma، وتنسيقها لدعم تعدد المستأجرين مستقبلاً واستخدام المعاملات البرمجية لقاعدة البيانات لضمان العمليات الذرية عبر الكيانات المرتبطة.
- تطوير واجهات برمجة التطبيقات (API): هندسة واجهات برمجة تطبيقات آمنة النوع باستخدام Zod للتحقق الصارم من الطلبات، وتصفية البيانات الخاطئة قبل وصولها إلى طبقة الخدمات.
- فصل المجالات: تقسيم التطبيق إلى مجالات الموظفين والعملاء باستراتيجيات مصادقة متميزة (JWTs مقابل OAuth/Cookies) لمنع تصعيد الصلاحيات.
- تحسين الأداء: دمج Redis (Upstash) للتخزين المؤقت وتحديد معدل الطلبات، واستخدام مكونات خادم React (React Server Components) لتقليل العبء على جانب العميل.