Skip to content

Full Stack Flight Ticket Booking System by Group 40 for Data Structure project using Spring Boot

Notifications You must be signed in to change notification settings

iamAden/Flight-Ticket-Booking-System

Repository files navigation

FlightHub (DS Group 40) ✈️

Question 3 - Flight Ticket Booking System

Features:

  1. Register and Login
  2. Search for flights based on date, source and destination
  3. View the cheapest flights starting from date searched
  4. Book flights
  5. View booking history
  6. Edit booking information
  7. Cancel bookings

Data Structure Implemented:

  • custom MyLinkedList & MyQueue class
  • both classes are inside com.ft.flight>src>main>java>com>ft>flight>entity

Tech Stack:

  • Backend: Java Spring-boot
  • Frontend: HTML, Javascript, CSS
  • Database: phpMyAdmin MySQL (freemysqldatabase.com)

Pre-requisites (download and install if you haven't)

  1. Maven (make sure maven is inside window's PATH, here's a tutorial to do that)
  2. JDK 17 and above
  3. Java Extension Pack (if you're using VSC)

Try it yourself ⭐

1. Download the repository

  • download the repository
  • extract and open folder inside IDE (vsc or intellij)

2. Running the application

  • open the project folder inside ur IDE (vsc/intellij)(netbeans cannot)
  • open terminal inside ur IDE
  • run cd com.ft.flight
  • run mvn clean install
    • (this command only need to execute once. after that when u wanna run the application u can just cd to com.ft.flight first, then run mvn spring-boot:run)
  • finally, run the app mvn spring-boot:run

(If you use Intellij and don't want to use terminal to run)

  • for intellij users, you can just open the project folder
  • go to Flight-Ticket-Booking-System>com.ft.flight>Application
  • then just run Application.main()

ERROR FIX 1: if mvn not executable error, its because maven is not in your laptop PATH. Follow this tutorial to solve ERROR FIX 2: if ur getting surefire error, it's because of your jdk version, go update your jdk TIP: must cd com.ft.flight first, and then mvn spring-boot:run

4. Setting up MySQL database connection

execute in terminal (commands below are for windows)

change to your mysql username & password

set DB_USERNAME=your_db_username set DB_PASSWORD=your_db_password

If you use IntelliJ, the steps above won't work! Instead, Edit Configuration and add this in the environment DB_USERNAME=your_db_username;DB_PASSWORD=your_db_password

3. Seeing the website

  • open ur browser and go to localhost:8080/login anddd DONE!! 🥳
  • Flights are only available for February 2024, Alor Setar➡️KLIA & KLIA2➡️Penang

ERROR FIX: if you are getting error localhost:8080 port is taken, there are two ways to solve this

  • Kill any running terminal OR
  • if you killed the terminal but still facing the same problem, can change the server port
    • open application.properties file under com.ft.flight>src>main>resources>application.properties
    • server.port=8081 can change to whatever u like, eg 8081 or 8082 or 8088, etc
    • so when u go to check the website go according to your server port, eg localhost:8081/login

TIP: If you can't send message inside contact, turn off your antivirus program or change to another browser

Gallery🎨

Register Page Login Page Login Page Login Page Home Page Home Page About Us About Us Page Contact Contact Page Search Flight Booking Page Search Results Search Results Page Booking Form Booking Form Booking History Booking History Edit Booking Edit Booking

About

Full Stack Flight Ticket Booking System by Group 40 for Data Structure project using Spring Boot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •