Skip to content

This project is a Travel Itinerary & Ticket PDF Generator built using the MERN stack. It allows users to upload travel details via form input and passengers detail through a csv file to automatically generate travel details in PDF format and send them directly to passengers via email.

Notifications You must be signed in to change notification settings

Adarsh-Kumar001/TravelSlip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

✈️ Travel Itinerary & Ticket PDF Generator

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.


Demo

TravelSLip Demo

🚀 Features

  • 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

Tech Stack

Frontend

  • React.js
  • Tailwind CSS
  • Papa Parse - for csv parsing

Backend

  • Node.js + Express.js – Server and API handling
  • MongoDB Atlas – Cloud database for storing travel details

PDF & Email

  • pdf-lib – PDF generation and formatting
  • Nodemailer – Sending emails with ticket attachments

Workflow

  1. User Inputs Travel Details

    • From, To, Date, Travel Type
    • Passenger details: Name, Email, Age, Seat Number
  2. Data Sent to Backend

    • Backend validates and saves details to MongoDB
  3. PDF Generation

    • Using pdf-lib a ticket is generated for each passenger
    • Ticket contains passenger’s name, email, age, seat number
  4. Email Distribution

    • Using Nodemailer each passenger receives their own pdf
  5. 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

About

This project is a Travel Itinerary & Ticket PDF Generator built using the MERN stack. It allows users to upload travel details via form input and passengers detail through a csv file to automatically generate travel details in PDF format and send them directly to passengers via email.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published