File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,39 @@ A React app with a form that when the user provides his flight number and last n
4
4
## Demo
5
5
https://gabrielnvg-flight-checkin.surge.sh
6
6
7
+ Two JSON files must be created using the models below and their paths added to the fetch code.
8
+
9
+ ## Data
10
+ ### JSON Template - Flights
11
+ ``` js
12
+ [
13
+ {
14
+ " flightNumber" : number,
15
+ " passengers" : [
16
+ {
17
+ " lastName" : string,
18
+ " title" : " Mr. | Ms. | Dr. | Prof. | Other"
19
+ }
20
+ ]
21
+ }
22
+ ]
23
+ ```
24
+
25
+ ### JSON Template - Users
26
+ ``` js
27
+ [
28
+ {
29
+ " firstName" : string,
30
+ " lastName" : string,
31
+ " nationality" : string,
32
+ " phoneNumber" : number,
33
+ " email" : string,
34
+ " passportNumber" : number,
35
+ " isTermsAndConditionsAccepted" : bool
36
+ }
37
+ ]
38
+ ```
39
+
7
40
## Dependencies
8
41
- [ Node] ( https://nodejs.org/en/ ) 12.15.0
9
42
- [ npm] ( https://www.npmjs.com/get-npm ) 6.13.4
You can’t perform that action at this time.
0 commit comments