- 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 has 80 seats, arranged as 7 seats per row with the last row having 3 seats.
- Users can reserve up to 7 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.git cd Ticket-Booking cd frontend
- Install dependencies:
npm install
- Start the application:
npm run dev
- Clone the repository:
git clone https://github.com/your-username/Ticket-Booking.git cd Ticket-Booking cd 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