alyyasser19 / MightyDucks

A website for an aireline using the MERN stack
0 stars 2 forks source link

addFlight User (Backend) #36

Closed alyyasser19 closed 2 years ago

alyyasser19 commented 2 years ago

The System should take the list already initialized for users and add the flight to it, then update it.

this works only for N users. checks should be taken into consideration such as the existance of the flights already, if the type of user is N, etc...

alyyasser19 commented 2 years ago

the flight should be added as a JSON including but not limited to the following items. list of names of travlers departure and return flights, including the dates and times of the departure and return flights, the chosen cabin (Economy/ Business Class), the chosen seat and the total price paid for the entire ticket along with a unique booking number

alyyasser19 commented 2 years ago

Backend should generate a unique booking number

alyyasser19 commented 2 years ago

an email should be sent to the user once the booking is done

faridasamer commented 2 years ago

The format for flights would be json file that has: departure, return, no of passengers(list of persons with their cabin class, baggage (tbd))

alyyasser19 commented 2 years ago

and price paid