Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mukulsomukesh/seat-booking
The app operates in a single coach with 80 seats arranged in rows. Each row has 7 seats except the last row, which has 3 seats. Users can reserve up to 7 seats in a single booking. The system prioritizes booking seats in a complete row. If that's not possible, it allocates adjacent seats.
https://github.com/mukulsomukesh/seat-booking
chakra-ui express-js full-stack-web-development fullstack-development mongodb node-js react-js seat-booking ticket ticket-booking-system
Last synced: 15 days ago
JSON representation
The app operates in a single coach with 80 seats arranged in rows. Each row has 7 seats except the last row, which has 3 seats. Users can reserve up to 7 seats in a single booking. The system prioritizes booking seats in a complete row. If that's not possible, it allocates adjacent seats.
- Host: GitHub
- URL: https://github.com/mukulsomukesh/seat-booking
- Owner: mukulsomukesh
- Created: 2023-07-13T10:43:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-27T06:29:13.000Z (22 days ago)
- Last Synced: 2024-12-27T07:25:40.713Z (22 days ago)
- Topics: chakra-ui, express-js, full-stack-web-development, fullstack-development, mongodb, node-js, react-js, seat-booking, ticket, ticket-booking-system
- Language: JavaScript
- Homepage: https://golden-babka-110096.netlify.app/
- Size: 200 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Seat Booking
## Deployed App
https://golden-babka-110096.netlify.app/## Video Walkthrough of the project
https://drive.google.com/file/d/1AjJ7g1D_yXU10sYK0weA9DeSbq18J_fr/view?usp=sharing## Problem Description:
- There are 80 seats in a coach of a train with only 7 seats in a row and last row of only 3 seats. For
simplicity, there is only one coach in this train.
- One person can reserve up to 7 seats at a time.
- If a person is reserving seats, the priority will be to book them in one row.
- If seats are not available in one row then the booking should be done in such a way that the nearby
seats are booked.
- User can book as many tickets as s/he wants until the coach is full.
- You don’t have to create login
functionality for this application## Tech Stack
- React js
- Node js
- Express js
- MongoDB## Screenshot
## Backend Installation
- clone repo
- cd backend
- npm install
- node index.js## Frontend Installation
- clone repo
- cd frontend
- npm install
- npm start## API Endpoints
- https://seat-booking-tg8y.onrender.com
- GET /api/seats - get all seats
- POST /api/seats - reset all seats booking
- POST /api/seats/book - book n seats