Skip to content

bire210/ticketBookingApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bus ticket Booking system App

The ticket Booking system is a web-based application that allows users to book Tickets for a bus. It provides a platform where users can easily book a ticket for the bus. The system aims to streamline the process of ticket booking by providing a convenient and efficient booking system.

js nodejs express mongo npm

Server: Node, Express, MongoDB Atlas

Client: HTML, CSS ,Javascript,React.js

Video Presentation

Video Link - https://drive.google.com/file/d/1aqzvgL7D3sF2CXU-8f9w-4rIjpt80VTw/view?usp=sharing

Deployment

Server side: Render cloud https://tbs-ye6x.onrender.com/

Client side: Netlify https://phenomenal-frangollo-b5553e.netlify.app/

Features

  • API Validation
  • Signup/Login
  • Users can book a ticket for a bus
  • complete flow of a ticket booking system
  • Only available tickets can be booked

Run Locally Clone this Project

https://github.com/bire210/ticketBookingApp.git

Runs the project in the development mode

http://localhost:8080

Search bus from Ranchi to Bokaro only

NPM Packages

bcrypt.png cors dotenv jwt mongoose.png nodemon.png

API Endpoints

User Signup

POST  http://localhost:8080/api/auth/register

User Login

POST  http://localhost:8080/api/auth/login

Search list of Buses from one city to another city

POST http://localhost:8080/api/bus/search

tO fetch Avialbel seat of a bus

GET http://localhost:8080/api/bus/search/id

To Add the ticket to cart

POST  http://localhost:8080/api/bus/cart/add

To get all ticket avaible in cart

POST  http://localhost:8080/api/bus/cart

book the ticket

POST  http://localhost:8080/api/bus/book/id

delete ticket from cart

DELETE http://localhost:8080/api/bus/cart/${id}

delete ticket from cart

DELETE http://localhost:8080/api/bus/cart/${id}

to get all booked ticket

POST http://localhost:8080/api/bus/book

cancel the booked ticket

DELETE `http://localhost:8080/api/bus/book/${id}

USERS DATA/ LOGIN DATA

{
  email:birendra@gmail.com
  password:123456
}
Authors

@bire210

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published