A MERN stack web application that allows users to create and manage travel itineraries. It generates travel itinerary as PDFs, sends them via email automatically.
- Add travel details (From, To, Date, Travel Type)
- Add multiple passengers with details (Name, Email, Age, Seat Number)
- Generate travel itineraries in PDF format
- Send individual ticket PDFs to each passenger’s email
- Preview tickets directly in the browser
- Import passenger details from CSV
- React.js
- Tailwind CSS
- Papa Parse - for csv parsing
- Node.js + Express.js – Server and API handling
- MongoDB Atlas – Cloud database for storing travel details
- pdf-lib – PDF generation and formatting
- Nodemailer – Sending emails with ticket attachments
-
User Inputs Travel Details
- From, To, Date, Travel Type
- Passenger details: Name, Email, Age, Seat Number
-
Data Sent to Backend
- Backend validates and saves details to MongoDB
-
PDF Generation
- Using pdf-lib a ticket is generated for each passenger
- Ticket contains passenger’s name, email, age, seat number
-
Email Distribution
- Using Nodemailer each passenger receives their own pdf
-
Preview
- Users can view their ticket directly in browser (same tab)
THE CSV FILE MUST CONTAIN THIS CSV Format
Required columns: Name,Email,Age,Seat
FOR IT TO WORK