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.
- 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
jsPDFandqrcodeto 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
/adminsub-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.
| 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) |
Ensure you have the following installed locally:
- Node.js (v18+)
- MongoDB (Running on
mongodb://127.0.0.1:27017)
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>In the root directory of the application:
npm install
npm run devThis command invokes concurrently, perfectly binding the Express Core to Port 5000 and the React GUI to Port 3000.
The infrastructure intelligently segments testing users.
Standard User Profile:
- Use the
/loginor/signupflow. - 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.


