SAMYH-Airline Reservation System
A user friendly website for airline called “SAMYH” to make reservations for flights on the system for users and guests by searching for flights, reserve it and they have more functionalities as edit their reservations and cancelling it. also allowing the administers to edit on it the flights system between adding, deleting and editing flights details.
Our vision was to create user-friendly website using MERN stack
*Node Js *React *Express *Mongo DB *REST API
Locally:
- Clone the link of repository from github.
- Open new terminal.
Cd src
node app
“wait until MongoDB connected”.- Open new terminal.
Cd frontend
npm start
“wait until your browser open automatically”.
For Admin:
- The list of all flights on the DB.
- Searching criteria.
- Editing flights.
- Adding/deleting flights
For User/Guest:
- Booking flights. “you can go with LAX->JFK on 12 .jan.2022 and 22.jan.2022 as example”
- Editing flights seats.
- Cancelling his booked flights
- The ticket as PDF attachment email after reservation and cancelling
NODEJS:
useEffect(() => {
axios.get('http://localhost:8000/currentUser').then(res =>{
if (res.data=="0" || res.data.type=="Customer" || res.data.type=="Guest" ){
alert("Access Denied, Please Sign In First");
history.push({pathname:"/SignIn"});
}
// else go to admin page
})
}, [location]);
const [FlightNo, setFlightNo] = useState("");
const [FlightFrom, setFlightFrom] = useState("");
const [FlightTo, setFlightTo] = useState("");
const [FlightDate, setFlightDate] = useState("");
const [FlightDep, setFlightDep] = useState("");
const [FlightArr, setFlightArr] = useState("");
const [FlightFirst, setFlightFirst] = useState("");
const [FlightBus, setFlightBus] = useState("");
const [FlightEco, setFlightEco] = useState("");
const [checked, setChecked] = useState(false);
The project is created with the contribution of 5 members.
- https://github.com/yusufammar
- https://github.com/MayarEzzeldin
- https://github.com/AdhamElsheikh
- https://github.com/hossammeligy
- https://github.com/Shorook1
https://mui.com
https://www.codecademy.com/learn/react-101
https://www.w3schools.com/nodejs/
https://expressjs.com/