Welcome to the Flight Reservation Web Application project developed by Group 12 for the ENSF 480 course. This web application is designed for use by different type of users, tourism agents, airline agents, and system admins.
For a detailed description of the Flight Reservation System, please refer to the System Description Google Doc.
Before you begin, ensure you have the following prerequisites installed on your machine:
-
Node.js and npm:
- Download and Install Node.js (version 10.2.3)
- npm is included with Node.js, so no separate installation is required.
-
MySQL:
- Download and Install MySQL
- Set up a MySQL database with the necessary configurations.
-
MySQL Workbench 8.0 CE:
- Download and Install MySQL Workbench
- Set up a MySQL Workbench Server connection with the necessary configurations.
-
Java 21:
- Download and Install Java 21 (or use an alternative distribution like OpenJDK).
-
Maven:
- Download and Install Apache Maven
- Set up Maven on your machine.
- Add Maven to your PATH environment
Follow these steps to set up and run the Flight Reservation Web Application:
-
Clone the Repository:
git clone https://github.com/your-username/flight-reservation-app.git cd flight-reservation-app```
-
Initialize MySQL Database:
Run the airlinedb.sql script to initialize the MySQL database.
- Configure Database Connection:
Navigate to group12/src/main/resources. Configure the application.properties file with your database username, password, and datasource URL.
- Build and Run the Backend
mvn clean install
cd target
java -jar group12-0.0.1-SNAPSHOT.jar
- Build and Run the Frontend Open up a new terminal window.
npm i
npm run build
npm run start
- Access the Application Open your web browser and navigate to http://localhost:3000 to access the Flight Reservation Web Application.