Giter VIP home page Giter VIP logo

airline-ticket-booking's Introduction

Installation and run:

git clone https://github.com/Mi1ton/airline-ticket-booking.git

cd airline-ticket-booking

npm i

npm run dev

airline-ticket-booking

Assignment:

Your task is to create a web application for booking airline tickets using React. The application should simulate the functionality of ticket booking according to API data. I am sending the test dataset as an attachment.

Application requirements:

Project Structure: Create a proper project structure in React and organise components, services and styles according to best practices.

Load flights: Load the mock data and hold its state in the React application. Use a suitable state management tool (e.g. React Context, Redux...) to store and update the mock flights and booking data. State changes should be reflected in the UI.

Search for available flights: Implement a flight search component. Users should be able to specify origin and destination airports, departure date and other relevant parameters and show flights matching the filtering in a list.

Flight booking: After the user selects a flight, allow the user to select seats and complete the booking. The user should be able to select the desired seats and enter passenger details. After simulated booking, display confirmation and information about the booked flight.

Data validation: Check if the entered data is valid (e.g. date validation etc...). Show the user the corresponding error messages in case of invalid data.

Bonus:

Error handling: Simulate various error conditions such as data loading errors, invalid server responses, etc. Display appropriate error messages to the user.

airline-ticket-booking's People

Contributors

mi1ton avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.