Skip to content

About

A modern, production-grade Travel Agency, VISA Consultancy, and Booking Management System built with Next.js 16 (App Router), TypeScript, Tailwind CSS, shadcn/ui, MongoDB, and BetterAuth + JWT.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

✈️ ExploVisa — Full-Stack Travel Agency & VISA Management Platform

A modern, production-grade Travel Agency, VISA Consultancy, and Booking Management System built with Next.js 16 (App Router), TypeScript, Tailwind CSS, shadcn/ui, MongoDB, and BetterAuth + JWT.

Next.js TypeScript Tailwind CSS MongoDB BetterAuth

Live Demo • View Repository • Report Issue • Developer Profile


📌 Project Overview

ExploVisa is a full-stack commercial travel & immigration consultancy platform engineered for high-conversion customer bookings and centralized agency operations. It pairs a responsive glassmorphism storefront with a fixed-sidebar SaaS Admin Control Center backed by MongoDB Atlas and BetterAuth (Session + JWT).

The platform handles end-to-end VISA applications (including secure passport scan uploads), flight & hotel reservation inquiries, multi-zone image/video promotional campaigns, a searchable travel blog, WhatsApp lead routing, and real-time analytics.


🛠️ Tech Stack

Layer Technologies & Libraries
Framework Next.js 16 (App Router, Server Components, Turbopack), React 19, TypeScript
Styling & UI Tailwind CSS v4, shadcn/ui, Bootstrap Icons, Google Fonts (Outfit, Archivo Black)
Database MongoDB Atlas (Official mongodb Node.js driver with connection pooling)
Authentication BetterAuth (Email/Password + jwt() plugin, Role-Based Access Control, Master Recovery Key)
Admin & Data Viz Recharts (6-month inquiry trend bar charts), react-hot-toast notifications
File Handling & SEO Multipart FormData upload API, dynamic sitemap.xml & robots.txt, dynamic generateMetadata

✨ Complete Feature Set

🌐 Customer-Facing Application

  • High-Conversion Homepage (/):
    • Sticky glassmorphism navigation bar (Navbar.tsx) with dynamic brand logo, site name, and configurable display mode (Both, Logo Only, or Text Only).
    • Dynamic Hero Banner Slider (HeroSlider.tsx) with auto-advance and slide controls.
    • Integrated 3-tab booking & search widget (Apply VISA, Book Flight, Find Hotels) with instant AJAX submission and WhatsApp redirect.
    • Curated sections for VISA destinations, airline flight deals, luxury hotels, services showcase, testimonials, and FAQ accordions.
  • VISA Directory & Application Pipeline (/visa, /visa-details/[id]):
    • Real-time client-side filtering by country, visa type, and max price.
    • Detailed embassy checklists, processing times, fees, gallery, and multipart passport scan upload (PDF, JPG, PNG, max 5MB) via /api/submissions/visa.
  • Flight & Hotel Portals (/flight, /hotel):
    • Custom itinerary & stay inquiry forms (/api/submissions/flight, /api/submissions/hotel) paired with active route/property catalogs.
  • Dynamic Promotional Ads Engine (PromoSection.tsx):
    • Reusable responsive partial supporting images and autoplay MP4 videos in text_left, text_right, and full_width overlay layouts across Home, About, VISA, and Flight pages.
  • Travel Blog & SEO (/blog, /blog/[slug], /sitemap.xml, /robots.txt):
    • Searchable, category-filtered travel guides and dynamic XML sitemap generation.
  • Support & Legal (/about, /contact, /faq, /privacy, /terms):
    • Interactive Google Maps embed, AJAX contact form (/api/submissions/contact), and floating WhatsApp concierge widget.

⚙️ Admin Control Center (/admin)

  • Fixed Viewport Sidebar & Dynamic Branding (AdminShell.tsx):
    • Always-visible fixed navigation sidebar with mobile drawer support and live site_name synchronization.
  • Analytics Dashboard (/admin):
    • Real-time KPI cards for VISA Packages, Flight Deals, Hotel Listings, Published Blogs, Hero Banners, VISA Requests, Flight Bookings, Hotel Bookings, and Contact Inquiries.
    • Recharts 6-month inquiry trend bar chart and recent applications table.
  • Bookings & Lead Queues (/admin/visa-requests, /admin/flight-bookings, /admin/hotel-bookings, /admin/contacts):
    • Status workflow management, passport document viewer/download, and one-click CSV export for VISA applications.
  • Full Catalog, Banner, Blog & Ad CRUD:
    • Manage VISA packages (/admin/visas), Flight deals (/admin/flights), Hotel listings (/admin/hotels), Hero banners (/admin/banners), Multi-zone Promo Ads (/admin/ads/[type]), Blog posts (/admin/blogs), and Blog categories (/admin/blog-categories) with integrated file uploads (/api/admin/upload).
  • Site Settings & RBAC (/admin/settings, /admin/users):
    • Upload custom Logo and Favicon (with ExploVisa default favicon fallback), toggle Header Brand Display (Both / Logo Only / Site Name Text Only), configure WhatsApp/contact/SEO/social settings, and manage SuperAdmin / Editor accounts.

📂 Project Structure

VISA-AGENCY/
├── public/
│   ├── assets/images/            # Theme assets & default-favicon.png
│   └── uploads/                  # Uploaded media & passport documents
├── scripts/
│   ├── seed-bulk.mjs             # Bulk catalog seeder
│   ├── seed-leads.mjs            # Sample bookings & inquiries seeder
│   └── seed-47x.mjs              # Large-scale diverse dataset generator
└── src/
    ├── app/
    │   ├── page.tsx              # Homepage
    │   ├── visa/                 # VISA directory
    │   ├── visa-details/[id]/    # VISA details & passport upload form
    │   ├── flight/ & hotel/      # Flight & hotel inquiry portals
    │   ├── blog/ & blog/[slug]/  # Blog listing & article view
    │   ├── about/ contact/ faq/ privacy/ terms/
    │   ├── sitemap.ts & robots.ts
    │   ├── admin/                # Fixed-sidebar Admin Panel & login/recovery
    │   └── api/
    │       ├── auth/[...all]/    # BetterAuth + JWT handler
    │       ├── auth/recover/     # Master Recovery Key password reset
    │       ├── submissions/      # Public VISA, Flight, Hotel, Contact APIs
    │       └── admin/            # Protected CRUD, Upload, Settings, Users, Dashboard APIs
    ├── components/
    │   ├── ui/                   # shadcn/ui primitives
    │   ├── admin/                # AdminShell, Dashboard, CRUD, Requests, Settings, Users
    │   └── ...                   # Navbar, Footer, HeroSlider, SearchTabsWidget, PromoSection
    └── lib/
        ├── mongodb.ts            # MongoDB singleton connection
        ├── auth.ts & auth-client.ts
        ├── admin-guard.ts & admin-crud.ts
        ├── data.ts & seed.ts
        └── utils.ts

🚀 Getting Started

1. Prerequisites

  • Node.js 20+ and npm
  • MongoDB Atlas cluster (or local MongoDB instance)

2. Environment Variables

Configure .env in the project root:

MONGODB_DB_NAME=travel-agency
MONGODB_URI=your_mongodb_connection_string
BETTER_AUTH_SECRET=your_random_32_char_secret
BETTER_AUTH_URL=http://localhost:3000

3. Install & Run

npm install
npm run dev

Open http://localhost:3000. Initial settings, banners, ads, catalog items, and the default SuperAdmin account are seeded automatically on first load.


🗝️ Default Admin Access

Field Value
Admin Login /admin/login
Email admin@travelagency.com
Password adminPassword123
Master Recovery Key AERO_SECURE_RECOVERY_2026

Security Note: Update the default admin password immediately after signing in on production deployments.


👨‍💻 Author & Maintainer

MD SAMIUR RAHMAN TANIM
Full-Stack Web Developer

About

A modern, production-grade Travel Agency, VISA Consultancy, and Booking Management System built with Next.js 16 (App Router), TypeScript, Tailwind CSS, shadcn/ui, MongoDB, and BetterAuth + JWT.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages