Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Project Demo

About the Project

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.

Tech Stack

Frontend

Backend

Database

Deployment

  • Frontend - Vercel
  • Backend - Render

Features

  • 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.

Installation

Prerequisites

Frontend Steps

  1. Clone the repository:
    git clone https://github.com/your-username/Ticket-Booking.gitcd Ticket-Bookingcd frontend
  2. Install dependencies:
    npm install
  3. Start the application:
     npm run dev

Backend Steps

  1. Clone the repository:
    git clone https://github.com/your-username/Ticket-Booking.gitcd Ticket-Bookingcd backend
  2. Install dependencies:
    npm install
  3. Start the application:
    node server.js

Screenshots

Login Page

Login-Page

Signup Page

Booking Page

Booking Page

Booking Page

API Endpoints

Best Practices Followed

  • 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

Contact

Project Owner

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp