Skip to content

A React app with a form that when the user provides his flight number and last name, an API request returns a new form, to be filled with the user's basic information, with a confirmation message afterwards.

Notifications You must be signed in to change notification settings

gabrielnvg/flight-checkin-form

Repository files navigation

Description

A React app with a form that when the user provides his flight number and last name, an API request returns a new form, to be filled with the user's basic information, with a confirmation message afterwards.

Demo

https://gabrielnvg-flight-checkin.surge.sh

Two JSON files must be created using the models below and their paths added to the fetch code.

Data

JSON Template - Flights

[
  {
    "flightNumber": number,
    "passengers": [
      {
        "lastName": string,
        "title": "Mr. | Ms. | Dr. | Prof. | Other"
      }
    ]
  }
]

JSON Template - Users

[
    {
      "firstName": string,
      "lastName": string,
      "nationality": string,
      "phoneNumber": number,
      "email": string,
      "passportNumber": number,
      "isTermsAndConditionsAccepted": bool
    }
]

Dependencies


This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

About

A React app with a form that when the user provides his flight number and last name, an API request returns a new form, to be filled with the user's basic information, with a confirmation message afterwards.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published