Skip to content

itsvaibhavmishra/train-booking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Train Booking

Train Booking is a MERN stack application that allows users to book seat for a train. The app includes an attractive UI and multiple features.

Features

  • Robust authentication system

  • Auth based booking

  • Seat availability check

  • Book a max of 7 seats at once

  • Closest seats booking alogrithm

  • Seat data reset everyday at 9:30AM IST

  • Default seed for mongodb


Project Live On

Netlify
Netlify Status

Technology Used

React CSS3 HTML5 JavaScript Node.js Express.js Git Tailwind MongoDB

Commands

Backend

$ npm install

Installs all the required packages for backend

$ npm start

Starts the server using nodemon

Frontend

$ npm install

Installs all the required packages for frontend

$ npm start

Runs frontend on localhost(React App)

$ npm run build

Creates an optimized production build


Folder Structure

train-booking/
├── backend/
│ ├── model/
│ │ └── train.js
│ ├── routes/
│ │ └── train.js
│ ├── seed.js
│ └── server.js
├── frontend/
│ ├── public/
│ │ ├── index.html
│ │ └── manifest.json
│ ├── src/
│ │ ├── App.js
│ │ ├── index.css
│ │ └── index.js
│ ├── .env
│ └── tailwind.config.js
├── .gitignore
└── README.md