Skip to content

Ismael-Safadi/Flight-tickets-reservation-system-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flight-tickets-reservation-system-

Client and Server Flight-tickets-reservation-system using java
About

  • An Desktop application for Flight tickets reservation using java
  • Version 1.0
  • Client and server over local network using socket
  • All data that transferred will be encrypted using AES algorithm
  • Send email using SMTP protocol
  • Send SMS using Twilio API .
  • Login and registration in data base Sqlite
  • Admin control panel , the admin can view , modify and delete the tickets

before run the project just build it using IDE


Client Side

  • The first window when open the client main class ,welcome window. image

  • Then the next window is login .


image

  • How it works , if you have an account you can login using email and password , the controller class will send the data to the server using socket then the server will search in database login table and if the tow hashes are equivalents the reservation window will open and if the password is incorrect the system tell the client is the password is not correct by show alert but if the account doesn’t exists

image

  • If account doesn’t exists the system will ask the client to register new account and the data will send as encrypted data to the server then the server will store to into login table
  • Note that the password will store as sha256 hash
  • Validation : if the account already exists the system tell user this account already exists .
  • The next window is image
  • Reservation window , the client will fill all the fields with the correct information if any field is empty or any field fill with wrong information the system show alert tell user the wrong information
  • When submit the correct data and send it to the server , the server will send secret code to the email that user entered , and show confirm window >> image
  • Confirm window ask the user to select the secret code that he received on his email
  • If the secret code the system will send to the client SMS to his phone .
  • The SMS contains the ticket ID and the date of flight
  • If the secret incorrect the system show wrong message to user ,then store this information into Ready table in database

Server Side

  • The server side contains the server class and
  • DB connect , SMTP to send email , SMS API to send SMS , and 3 windows
  • The first window Admin control panel
  • This window show the ready tickets with there information
  • And the admin can modify and delete the tickets but must enter the admin password image
  • Delete window image
  • Delete window , if the ticket doesn’t exists the system tell user by alert ,The deleting process done by passport id image
  • On modify window the admin and modify the date of flight Notes =
  • Admin password is 123456
  • you need to make make an account in twilio website and fill the api information as following
  • 1 you need to change line 15 to your ACCOUNT_SID in [server > model > SMS_API.java ]
  • 2 and change line 17 to your AUTH_TOKEN in [server > model > SMS_API.java ]
  • you need to make gmail account and enable gmail enable less secure apps
  • and change line 37 and put your email and passowrd also in line 44 in server , model , Send_Email class

Using

  • The first class you should to run is Server_Server[ server > model > Server_Server.java].
  • then on the client side run [Client\src\main\Main.java]
  • click login then the new window will open , select your email and password
  • if this is the first time for you click register and create new account
  • then continue .
  • On the Admin side run [Server\src\main\Main.java]
  • view ,modify and delete the tickets .

Contact = - Facebook :https://www.facebook.com/ismael.alsafadi

Thank You

About

Client and Server Flight-tickets-reservation-system using java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published