Giter Club home page Giter Club logo

railway-management's Introduction

CodeQL

RAILWAY MANAGEMENT SYSTEM


:FOLDERS:


/Assets : Contains the data that is to be inserted in the MySQL tables in csv format

     Files: Train_details.csv -> Contains all the data about the trains in the format 
                                 (Train No, Station Code, Station Name, Arrival time, Departure Time, 
                                 Distance, Source Station, Source Station Name, Destination Station, 
                                 Destination Station Name)

/core : Contains all the files that are required by the project to work

    Files: __init__.py -> Makes the folder to be recognized as a module
           Checks.py -> This file contains the functions that verify the requirements of the Project
           InsertData.py -> This file contains the functions to insert the data in the MySQL tables
           User_Functions.py -> This file contains the function that allow a user to perform certain task
           Other.py -> This file contains some commonly used functions

:ROOT FOLDER FILES:


Main.py -> This is the main file that connects all the other modules and is used to run the project

requirements.txt -> It contains the required packages for this project to work that can be installed via the command pip3 install -r requirements.txt


:FEATURES:


Overview: It is a Railway Management system in which a user can book tickets, cancel reservations, check fares etc. It uses MySQL as the backend database.

  1. Book a Ticket: Users can book a ticket
  2. Cancel a Booking: Users can cancel a booked ticket
  3. Check Fares: Users can check fares before booking
  4. Show my Bookings: User can check their bookings
  5. Show Available Trains: Users can see the available trains
  6. Clear Screen: Clears the terminal screen
  7. Menu: Shows the menu
  8. About: Prints the content of this file to the screen
  9. Exit: Exit the program

:ENVIRONMENT SETUP:


  1. Clone the Repository to your machine.
  2. Create a Virtual Environment using virtualenv or pipenv.
  3. pip3 install -r Requirements.txt to install the required packages automatically.
  4. Make sure the MySQL Service is running and change the YOUR_PASSWORD in the files with the password and the YOUR_USERNAME with the username of your local SQL server.
  5. python3 Main.py to see if the program is running correctly and is able to connect to MySQL Server. (Feel free to ask for help if you face any error)

NOTE: Step 2 is optional but highly recommended to avoid conflicting packages.

NOTE: After Cloning the Repo rename the README.md to README.txt in order for the About() Function in /core/Other.py to work.

railway-management's People

Contributors

aaryanrr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.