Skip to content

pulkitpagare/assignment-metro-ticket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Online Metro Ticket Booking System

Overview

This project is a full stack online metro ticket booking system allowing users to book tickets between two stations. A unique ID is generated for each ticket, serving as the ticket itself. This system is designed for simplicity and efficiency, without the need for user login or authorization.

Features

  • Ticket Booking: Users can book tickets between any two stations.
  • ID Generation: Each ticket comes with a unique ID, valid for 18 hours.
  • Usage Limit: The ID can be used twice: once for entering and once for exiting a station.
  • Entry and Exit Validation: The ID must be used for entry before it can be used for exit.

Technology Stack

  • Frontend: Choice of frontend framework.
  • Backend: SpringBoot (Java).
  • Database: Flexible choice for storing ticket information.

Data Structure

  • JSON for Station Data: The system uses a JSON file to store information about stations and ticket prices.
  • Example JSON Structure:
    {
      "stations": {
        "A": { "startStation": true, "price": 0 },
        "B": { "price": 5 },
        "C": { "price": 15 },
        "D": { "lastStation": true, "price": 50 }
      }
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages