Giter Club home page Giter Club logo

flight-ticket-booking-system's Introduction

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

flight-ticket-booking-system's People

Contributors

iamaden avatar sornphert avatar yinjiamayeverlyn avatar

Stargazers

 avatar

Watchers

 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.