1. legacy
Itinera API
  • ✈ Itinera API Documentation
  • Docs
    • legacy
      • Itinera — System Overview
      • Technology Stack & Architecture
      • Getting Started Guide
      • Infrastructure
      • Frontend Application
      • Architecture Overview
      • API Reference
      • Backend Services
      • Development Guidelines
    • phases
      • 01. Architecture Overview & Checkout Idempotency
      • Phase 2: Commerce & Checkout Engine
      • Phase 3: Webhooks & Asynchronous Fulfillment
      • Phase 4: Security Perimeter & Authentication
      • Phase 5: Database Schema & Entity Relationships
      • Phase 6: AI Quota & Telemetry Subsystems
      • Phase 7: API Route Matrix & FormRequests
      • Phase 8: Global Exception & Error Handling
      • Phase 9: Frontend Ecosystem & State Management
      • Phase 10: Design System & Component Library
      • Phase 11: Interactive GSAP Animations
      • Phase 12: Deployment & CI/CD Pipeline
      • Phase 13: Testing Strategies
      • Phase 14: Performance & Optimization
      • Phase 15: Developer Onboarding & Runbooks
      • 15-Phase Comprehensive Wiki & Documentation Plan
  • APIs
    • Auth
      • Register a new user
      • Log in a user
      • Log out user
      • Refresh JWT token
      • Forgot password request
      • Reset password verification
      • Get current user profile
      • Update user profile
      • Redirect to Google OAuth
      • Google OAuth Callback
      • Verify email via signed URL
    • Catalog
      • List all countries
      • Get country details
      • List all cities
      • List all regions
      • List all destinations
      • Get destination details
      • Get hotels by destination
      • List all hotels
      • Get hotel details
      • Get reviews for a hotel
      • List all flights
      • Get flight details
      • List all restaurants
      • Get restaurant details
      • List all attractions
      • Get current weather
      • Submit review for an entity
      • Delete review
      • Toggle favourite status for entity
      • List my submitted reviews
    • Bookings
      • Book a tour destination
    • V1 Aliases
      • V1 List all countries
      • V1 Get country details
      • V1 List all cities
      • V1 List all destinations
      • V1 Get destination details
      • V1 Get hotels by destination
      • V1 List all hotels
      • V1 Get hotel details
      • V1 Get reviews for a hotel
      • V1 List all flights
      • V1 Get flight details
      • V1 List all restaurants
      • V1 Get restaurant details
      • V1 List all attractions
      • V1 Get attraction details
      • V1 List all regions
      • V1 Get weather details
    • Trips
      • List user trips
      • Create a new trip
      • Get trip details
      • Update trip details
      • Delete a trip
      • Get creation metadata
      • Attach items to a trip
      • Update trip item
      • Detach items from a trip
      • Fork a trip
    • Conversations
      • List user conversations
      • Start a new conversation
      • Get conversation details
      • List messages in conversation
      • Send message to conversation
      • Mark conversation as read
    • Commerce Plans
      • List public plans
      • Get public plan details
    • Commerce Subscriptions
      • Subscribe to a plan
      • Upgrade active plan
      • Get active subscription info
      • Cancel active subscription
    • Commerce Checkout
      • Initiate Paymob payment checkout
    • Integrations
      • Paymob status webhook callback
      • Paymob redirect return callback
    • System Settings & Support
      • Submit public contact message
      • Subscribe to system newsletter
      • Get list of my reports
      • List all notifications
      • Mark single notification as read
      • List available surveys
      • Submit answers for survey
      • Get survey details
      • Update survey details
      • Delete survey response
    • AI Tools
      • Enhance itinerary details using AI
      • Request AI review of itinerary
      • Plan route using AI assistance
      • Get AI quota remaining details
      • Chat with AI Concierge assistant
      • Get AI Review progress by ID
    • Agency Integration
      • Request agency assignment
      • List agency active tasks
      • List agency managed trips
      • Get agency total earnings
      • Get agency profile details
      • Update agency profile details
    • Admin User Management
      • List users inside admin dashboard
      • Get user profile
      • Set user active status
      • Block user profile
    • Admin Catalog Moderation
      • Create new catalog category
      • Create new catalog destination
      • Create new hotel catalog record
      • Create new flight catalog record
      • Create new restaurant catalog record
      • Create new attraction catalog record
  • Schemas
    • User
    • ErrorResponse
    • Trip
    • Destination
    • Hotel
    • Flight
    • Restaurant
    • Attraction
    • Booking
    • Review
    • Agency
    • Survey
  1. legacy

Getting Started Guide

Table of Contents#

1.
Prerequisites
2.
Backend Setup
3.
Frontend Setup
4.
Default Credentials
5.
Environment Variables That Matter
6.
Running The Test Suite
7.
One-Command Alternatives
8.
Troubleshooting Quick Hits

Prerequisites#

PHP ≥ 8.2 runtime (composer requires ^8.5; CI runs on 8.2 — see note below), Composer 2
MySQL 8 (or SQLite for quick local runs) and Redis (optional locally; predis is pure-PHP so no ext-redis needed)
Node.js + npm (Vite asset build for the backend package)
Python or PHP CLI to serve the static frontend
Version note: composer.json declares "php": "^8.5" while CI installs PHP 8.2 and the Docker backend image is php:8.5-fpm-alpine. For local dev, match your environment to whichever target you deploy to.
Section sources: composer.json, ci.yml, Dockerfile

Backend Setup#

Base API URL: http://127.0.0.1:8000/api
Interactive OpenAPI docs (Scramble): http://127.0.0.1:8000/docs/api
Section sources: README.md

Frontend Setup#

Landing page: http://localhost:8080/index.html
Admin suite: http://localhost:8080/admin/index.html
The shared core resolves its API base in js/common.js: window.TP_CONFIG.apiBase overrides, otherwise it defaults to http://127.0.0.1:8000/api. If you serve the API on another port, set TP_CONFIG before common.js loads.
Section sources: README.md, common.js

Default Credentials#

RoleEmailPassword
Adminadmin@threedos.compassword
Additional seeded users exist via User5Seeder; roles are provisioned by RoleAndPermissionSeeder (super_admin, admin, user, agency).
Section sources: README.md, database/seeders

Environment Variables That Matter#

Variable groupKeysPurpose
AuthJWT_SECRETtymon/jwt-auth token signing
PaymentsPAYMOB_PUBLIC_KEY, PAYMOB_SECRET_KEY, PAYMOB_HMAC, PAYMOB_INTEGRATION_IDSHosted checkout + webhook HMAC verification
AIGROQ_API_KEY, GROQ_MODEL (default llama-3.1-8b-instant)Groq LLM calls (config/services.php#L59-L62)
Social loginGoogle/Facebook client IDs + secretsSocialite redirect flow
Mail / queue / cachestandard Laravel keysNotifications, report jobs, Redis cache
Section sources: .env.example, services config

Running The Test Suite#

CI mirrors this: Pint style check then full PHPUnit run on ubuntu-latest with PHP 8.2 (ci.yml).
Section sources: README.md, ci.yml

One-Command Alternatives#

composer setup — install, copy env, generate keys, storage link, sqlite touch, npm build (composer.json scripts)
composer dev — concurrent artisan serve + queue:listen + Pail logs + Vite dev server
php artisan seed:fresh / sync:fixtures / sync:cities — custom console commands for reseeding and fixture sync (Console/Commands)

Troubleshooting Quick Hits#

401 everywhere after reseed — old JWTs signed with previous JWT_SECRET; log in again.
Webhook rejected — PAYMOB_HMAC mismatch or route not excluded from CSRF (paymob/webhook).
Weather 429s — throttle:weather limiter; responses are Redis-cached, check CACHE_DRIVER=redis.
Reports empty PDF — queue worker must run (queue:listen) since generation is a queued job.
Modified at 2026-08-25 22:41:45
Previous
Technology Stack & Architecture
Next
Infrastructure
Built with