Skip to content

SatyaCMD/YatraMind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Node.js MongoDB

YatraMind SuperApp

A next-generation, AI-powered travel ecosystem for Flights, Trains, Buses, and Cabs.

React Next.js Tailwind CSS Express.js MongoDB


🌟 Executive Summary

Welcome to YatraMind, a powerful, modern, next-generation travel application engineered with Google's Gemini AI. YatraMind offers dynamic trip planning, class-specific ticket booking, seamlessly synchronized user profiles across multiple data caches, and native IRCTC-standard PDF invoice construction.

🚀 Key Features

  • Multi-Modal Transport Engine: Effortlessly scale searches across Flights, Trains, Buses, and Cabs, executing fully dynamic class hierarchies (e.g. 1st AC, Sleeper AC, SUV, etc.).
  • Interactive e-Ticketing: Utilizes jsPDF and qrcode to generate enterprise-grade boarding passes injected with watermarks, randomized PNRs, and transaction identifiers offline.
  • AI-Powered Travel Intelligence: Fully integrated with @google/generative-ai, instantly returning the absolute lowest market fare matrices based on complex contextual prompts.
  • Master Admin Control Panel: A fully interactive /admin sub-engine loaded with database wipe-capabilities, cache flushing, and global "Force Offline" panic toggles.
  • Modern UX/UI Glassmorphism: Complete Tailwinds system featuring custom animations, dynamic sub-nav unmounting, animated logout counts, and high-quality notification overlays.

🛠 Tech Stack Architecture

Layer Technologies
Frontend Framework Next.js (App Router), React 18
State Management Redux Toolkit (authSlice, uiSlice)
Styling & Assets Tailwind CSS, Framer Motion, Lucide-React
PDF Subsystem jsPDF, qrcode
Backend API Node.js, Express.js
Database & ORM MongoDB, Mongoose
Authentication Node Web Crypto API, JWT
Intelligence Gemini 1.5-Flash (Google Generative AI)

💻 Quick Start & Deployment

1. Prerequisites

Ensure you have the following installed locally:

  • Node.js (v18+)
  • MongoDB (Running on mongodb://127.0.0.1:27017)

2. Configure Environment Tokens

Locate the backend/.env file and verify the following absolute secrets are exported correctly:

PORT=5000
MONGO_URI=mongodb://127.0.0.1:27017/yatramind
JWT_SECRET=yatra_super_secret_key_2024
GEMINI_API_KEY=<insert-your-gemini-key>

3. Spin up the cluster

In the root directory of the application:

npm install
npm run dev

This command invokes concurrently, perfectly binding the Express Core to Port 5000 and the React GUI to Port 3000.


🔐 Role-Based Access Control (RBAC)

The infrastructure intelligently segments testing users.

Standard User Profile:

  • Use the /login or /signup flow.
  • You can book tickets, fetch intelligent data, and execute live PNR status lookups directly from your Profile Dashboard.

System Administrator Profile:

  • Navigate manually to http://localhost:3000/admin.
  • Gain immediate authorization to override mock users, clear the global backend caching structures, or initiate the Master Killswitch to take the entire network offline in emergency situations.

Engineered for the optimal booking experience mapping.

About

YatraMind is a full-stack AI-powered travel platform that helps users plan, book, and manage trips seamlessly. It integrates multiple services like flights, hotels, and travel packages into a single intelligent system, offering personalized recommendations and a smooth user experience built with modern web technologies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors