Code Monkey home page Code Monkey logo

aircargo's Introduction

Flight Search App

This is a sample flight search app built with React and TypeScript. The app allows users to search for flights based on origin and destination airports, date range, and weight of shipment.

Tech Specs

  • React
  • TypeScript
  • styled-components
  • Chance (for generating mock data)

Architecture

Here's a high-level diagram of the architecture:

Diagram

Getting Started

To run this app locally, follow these steps:

  1. Clone this repository: git clone https://github.com/GiselleNessi/AirCargo.git
  2. Install the dependencies

npm install

  1. Run the app in the development mode

npm start

Open http://localhost:3000 to view it in the browser.

Sample Data

The app uses mock flight data to generate the search results. The data includes the following fields:

  • airlineName: The name of the airline that operates the flight.
  • airlineLogo: The URL of the airline's logo image.
  • departureDate: The date and time of the flight's departure.
  • arrivalDate: The date and time of the flight's arrival.
  • origin: The airport code of the flight's origin.
  • destination: The airport code of the flight's destination.
  • price: The price of the flight.
  • weight: The weight limit of the shipment, in kilograms.

Here's an example of the flight:

{
  "id": 0,
  "airlineName": "Delta Air Lines",
  "airlineLogo": "https://i.pravatar.cc/100?img=1",
  "departureDate": "2023-05-05T18:30:00.000Z",
  "arrivalDate": "2023-05-05T22:45:00.000Z",
  "origin": "LAX",
  "destination": "JFK",
  "price": 600,
  "weight": 20
}
  • Check console when running app for more data samples
  • Mock data can generate more than one offer returned per date

Improvements

  • Add more error handling and validation
  • Implement automated testing
  • Improve the user interface
  • Add pagination to the results

aircargo's People

Contributors

gisellenessi 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.