Skip to content

About

🧭 GlobeTrotter — Next-Gen Multi-City Travel Planner with dynamic budget engine (INR ₹), interactive itinerary builder, timeline views, and AI Trip Copilot.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🧭 GlobeTrotter — Smart Multi-City Travel Planning Platform

Node pnpm TypeScript Turborepo TailwindCSS Prisma

GlobeTrotter is a modern, full-stack travel planning platform built with a cinematic Sunset Adventure design theme. Design complex multi-city journeys, schedule curated attractions, track dynamic travel budgets in Indian Rupees (₹), interact with the Trip Copilot AI assistant, and share or clone itineraries with zero friction.


🌟 Key Features

  • 🗺️ Interactive Multi-City Itinerary Builder:
    • Add and reorder destinations with automatic chronological date-invariant checking.
    • Schedule sightseeing, dining, transit, and cultural activities with timing and cost tracking.
  • 💰 Dynamic Smart Budget Engine (INR ₹):
    • Real-time cost computation aggregating planned activities and manual expense receipts.
    • Visual category breakdown progress bars (Flight, Stay, Food, Transit, Activities).
  • 📅 Timeline & Calendar Views:
    • Chronological activity stream with transit waypoints and interactive day/month schedule matrix.
  • 🤖 Trip Copilot AI Assistant:
    • Integrated AI assistant powered by OpenRouter / Gemini with a built-in intelligent contextual fallback engine.
    • Estimates real city budgets (e.g. "What is the total cost to visit Tokyo?"), summarizes user itineraries, and provides step-by-step app navigation.
  • 🌍 Curated Global Destinations Catalog:
    • Explore world hubs across Europe, Asia, Americas, and Oceania with real daily cost estimations (₹4,500/day to ₹24,000/day), popularity ratings, and bookmark wishlist.
  • 🔗 Public Share & 1-Click Itinerary Cloning:
    • Generate clean public share links (/share/:slug) allowing friends to view and 1-click duplicate the entire journey into their own workspace.
  • 🌅 Sunset Adventure Design Language:
    • Cinematic dark mode (#0B0D10 / #13181F / #1D2129) with warm amber (#FFC87A) and coral accents (#FF6B3D), paired with a reduced-glare soft sand light theme (#EAE3DA) and glassmorphism.

🏗️ Architecture

graph TB
  subgraph Monorepo["Turborepo + pnpm workspace"]
    direction TB

    subgraph Apps
      WEB["apps/web<br/>React 19 · Vite 7 · TailwindCSS v4 · Zustand · TanStack Query"]
      API["apps/api<br/>Node.js · Express 5 · Prisma ORM · JWT · Pino"]
    end

    subgraph Packages
      SHARED["packages/shared<br/>Zod Schemas · TypeScript DTOs · API Routes · Constants"]
      TSCONFIG["packages/typescript-config<br/>Base · React · Node"]
      ESLINTCFG["packages/eslint-config<br/>ESLint 9 Flat Config"]
    end

    WEB --> SHARED
    API --> SHARED
    WEB --> TSCONFIG
    API --> TSCONFIG
    SHARED --> TSCONFIG
  end

  subgraph Cloud["Production Deployments"]
    VERCEL["Frontend on Vercel<br/>(SPA Rewrite · Global CDN)"]
    RENDER["Backend on Render<br/>(Express API Service)"]
    NEON["PostgreSQL on Neon<br/>(Serverless Database)"]
  end

  WEB -.-> VERCEL
  API -.-> RENDER
  RENDER --> NEON
Loading

💻 Tech Stack

Layer Technology
Frontend React 19, Vite 7, React Router v7, Zustand (State + Persist), TanStack React Query v5, Tailwind CSS v4, Lucide Icons, React Hot Toast, React Hook Form
Backend Node.js 22, Express 5, Prisma ORM 5.22, PostgreSQL, JWT Authentication, bcryptjs, Helmet, CORS, Pino Logger
Shared Zod Schemas (Runtime Validation & Type Inference), Universal Route Definitions
AI Layer OpenRouter API / Google Gemini API + Built-in Local Contextual Assistant Fallback Engine
Tooling Turborepo 2.9, pnpm workspaces, ESLint 9 (Flat Config), Prettier, Husky + lint-staged

🚀 Quick Start (Local Development)

1. Prerequisites

  • Node.js: v20+ or v22+
  • pnpm: v10+ (corepack enable pnpm)
  • PostgreSQL: Local Postgres or a free Neon database.

2. Installation

# Clone the repository
git clone https://github.com/ujas1010/odoo-hack-ld.git
cd odoo-hack-ld

# Install all monorepo dependencies
pnpm install

3. Configure Environment Variables

Create .env files in root, apps/api, and apps/web:

apps/api/.env:

PORT=4000
NODE_ENV=development
CORS_ORIGIN=http://localhost:5173
DATABASE_URL="postgresql://user:password@localhost:5432/globetrotter?sslmode=require"
JWT_SECRET="globetrotter-super-secret-jwt-key-change-in-production-min-16-chars"
JWT_EXPIRES_IN="7d"

# Optional AI Assistant Keys (built-in intelligent fallback works without keys)
OPENROUTER_API_KEY=""
OPENROUTER_MODEL="nvidia/nemotron-3.5-lightning:free"
OPENROUTER_BASE_URL="https://openrouter.ai/api/v1"
OPENROUTER_APP_NAME="GlobeTrotter"
GEMINI_API_KEY=""

apps/web/.env:

VITE_APP_NAME="GlobeTrotter"
VITE_API_URL="http://localhost:4000/api/v1"

4. Initialize Database & Seed Sample Data

# Push Prisma schema to your database
pnpm --filter @template/api exec prisma db push

# Seed cities, curated attractions, and sample demo accounts
pnpm --filter @template/api exec prisma db seed

5. Start Development Server

pnpm dev
  • Web Application: http://localhost:5173
  • API Backend: http://localhost:4000/api/v1
  • API Health Check: http://localhost:4000/api/v1/health

🔑 Pre-seeded Demo Accounts

You can log in immediately with the following accounts (or use the 1-Click Demo Buttons on the Sign In page):

Role Email Password
Demo Traveler demo@globetrotter.com Password123!
Admin admin@globetrotter.com Password123!
Traveler (Sarah) sarah@globetrotter.com Password123!

🌐 Production Deployment Guide

A. Deploy PostgreSQL Database (Neon)

  1. Create a project at Neon.
  2. Copy the Pooled connection string (e.g. postgresql://user:password@ep-xyz-pooler.us-east-2.aws.neon.tech/neondb?sslmode=require).

B. Deploy Backend Web Service (Render)

  1. Go to Render Dashboard → New + → Web Service.
  2. Connect your GitHub repository ujas1010/odoo-hack-ld (branch main).
  3. Configuration:
    • Root Directory: (leave blank)
    • Runtime: Node
    • Build Command:
      pnpm install && pnpm --filter @template/shared build && pnpm --filter @template/api exec prisma generate && pnpm --filter @template/api build && pnpm --filter @template/api exec prisma db push && pnpm --filter @template/api exec prisma db seed
    • Start Command:
      pnpm --filter @template/api start
  4. Add Environment Variables on Render:
    • NODE_ENV: production
    • PORT: 10000
    • DATABASE_URL: Your Neon connection string
    • JWT_SECRET: Your secure JWT secret
    • JWT_EXPIRES_IN: 7d
    • CORS_ORIGIN: * (or your Vercel frontend URL)
    • OPENROUTER_API_KEY: (Optional)
    • OPENROUTER_MODEL: nvidia/nemotron-3.5-lightning:free
    • OPENROUTER_BASE_URL: https://openrouter.ai/api/v1
    • OPENROUTER_APP_NAME: GlobeTrotter

C. Deploy Frontend (Vercel)

  1. Go to Vercel → Import ujas1010/odoo-hack-ld.
  2. Configuration:
    • Framework Preset: Vite
    • Root Directory: apps/web
  3. Add Environment Variables on Vercel:
    • VITE_APP_NAME: GlobeTrotter
    • VITE_API_URL: https://<YOUR-RENDER-URL>.onrender.com/api/v1
  4. Click Deploy.

🛠️ Monorepo Scripts

Command Description
pnpm dev Run Vite frontend + Express backend concurrently with live reload
pnpm build Build all monorepo packages and apps (@template/shared, @template/api, @template/web)
pnpm lint Run ESLint with zero-warning threshold across all packages
pnpm typecheck Run TypeScript type checks across all packages
pnpm format Run Prettier code formatting check
pnpm db:push Sync Prisma schema with database without migrations
pnpm db:seed Seed catalog destinations, sample itineraries, and users
pnpm db:studio Launch Prisma Studio GUI database browser

📄 License

This project is open source and available under the MIT License.

About

🧭 GlobeTrotter — Next-Gen Multi-City Travel Planner with dynamic budget engine (INR ₹), interactive itinerary builder, timeline views, and AI Trip Copilot.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages