krishnamomar / Trainetic

Web Tool made for Booking Tickets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🚂Trainetic

Welcome To Trainetic!! A Web-Tool made for booking tickets for Trains. Made for DBMS/CSE202 course project, Using Tools Python Flask, MySQL, HTML and CSS.

Getting Started

First Download the zip of this project and then install all the required files by running the following commands on your PC terminal.

Windows

py -2 -m pip install virtualenv
pip install Flask

MacOs

sudo python2 -m pip install virtualenv
pip install Flask

Debian/Ubuntu Linux

sudo apt install python-virtualenv
pip install Flask

CentOS/Fedora/Red Hat Linux

sudo yum install python-virtualenv
pip install Flask

Download MySQL workbench, and create a new user with following credentials:

Username: root
Host: Localhost
Password: AbCd@123

Now create a Database by running the primary database create query file given at: Database_Create
Now simply run the file as

python -m flask run

Open your browser and run the link

http://127.0.0.1:5000/

Populating Database

Initially all the primary CSV files are provided with all required data for primary working. Run required MySQL command to run populate all the databases. CSV Files

Schematic Diagram of The DATABASE

Scema Diagram

All Major Screens

Main Page

index page

Browsing Trains

browse trains

User Login Page

user login

User Info Page

user main page

All Booked Ticket List

all tickets

Browse Trains

all trains

Book a Ticket

booked

Registration Screen

register new user

Admin Login

Please note admin can only login through following credentials:
Username: _octopus_
Password: monkey_man

admin login

Other Queries

There are more mysql query files, meant for running the database related function without the frontend being involved. All Queries

Project Report

Project Report can be accessed from the following Link. Project Report Complete

Thank You
Made By:

About

Web Tool made for Booking Tickets

License:MIT License


Languages

Language:CSS 57.6%Language:HTML 26.4%Language:Python 16.0%