- Notifications
You must be signed in to change notification settings - Fork0
A train seat reservation application with user authentication, dynamic seat booking, and management features. Built using Next.js, Node.js, Express.js, and PostgreSQL, this project follows best practices in web development and provides a seamless user experience for reserving train seats.
NotificationsYou must be signed in to change notification settings
Omgupta12/Ticket-Booking
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
- Live Application:-https://seat-booking-frontend-rpi7.vercel.app
- Video Presentation:-https://drive.google.com/file/d/1JC1PKEJYtqN5haBw6N3NH_WGWqLctpdL/view?usp=sharing
This application allows users to reserve train seats with specific constraints:
- The train has80 seats, arranged as7 seats per row with the last row having3 seats.
- Users can reserve up to7 seats in one booking, prioritizing booking in a single row.
- Seats are assigned nearby if a single row is unavailable.
- User authentication is required for seat booking.
- Booked seats are locked and cannot be reserved by others unless canceled.
- Frontend - Vercel
- Backend - Render
- User Authentication: Sign Up/Login functionality.
- Responsive Design: Optimized for various devices.
- Dynamic Routing: Utilizes Next.js file-based routing.
- Error Handling: Proper validation and error responses.
- Secure Bookings: Seat locks to avoid duplicate reservations.
- Administrative Features: Reset seat bookings.
- Deployment-Ready: Compatible with cloud platforms.
- Node.js installed.
- PostgreSQL installed and running.
- Clone the repository:
git clone https://github.com/your-username/Ticket-Booking.gitcd Ticket-Bookingcd frontend
- Install dependencies:
npm install
- Start the application:
npm run dev
- Clone the repository:
git clone https://github.com/your-username/Ticket-Booking.gitcd Ticket-Bookingcd backend
- Install dependencies:
npm install
- Start the application:
node server.js
- https://seatbooking-backend-tsp2.onrender.com/api/auth/login - Login
- https://seatbooking-backend-tsp2.onrender.com/api/auth/signup - Signup
- https://seatbooking-backend-tsp2.onrender.com/api/seats - Get all seats
- https://seatbooking-backend-tsp2.onrender.com/api/seats/reset - Reset all bookings
- https://seatbooking-backend-tsp2.onrender.com/api/seats/book - Booking seats
- Validation: Input sanitization and validation.
- Error Handling: Graceful responses for edge cases.
- Security: Use of JWT, bcrypt, etc.
- Code Quality: Linting and adherence to coding standards.
- Modularity: Clean, reusable components and modules
- Portfolio:https://omgupta12.github.io/
- Email:omprakash1997242@gmail.com
About
A train seat reservation application with user authentication, dynamic seat booking, and management features. Built using Next.js, Node.js, Express.js, and PostgreSQL, this project follows best practices in web development and provides a seamless user experience for reserving train seats.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published