GithubHelp home page GithubHelp logo

xsnowm4nx / react-flight-tracker Goto Github PK

View Code? Open in Web Editor NEW
73.0 1.0 26.0 37.51 MB

✈️ An open-source real-time flight tracker with React, TypeScript, Mapbox and data from the OpenSky Network API.

License: MIT License

HTML 0.36% CSS 0.37% TypeScript 98.81% JavaScript 0.46%
flight-tracker flight-tracking react typescript mapbox-gl-js react-map-gl material-ui opensky-network opensky-api mui reactjs aircraft-traffic flight-map aircraft-flights aircraft-map map mui-material flight-radar radar vite

react-flight-tracker's Introduction

react-flight-tracker

An open-source project written with React and TypeScript.

The goal of this project is to read the data from OpenSky Network and visualize it on a map.

JavaScript Style Guide

📦 Packages:

🔮 Features:

  • Using "Hooks", "Context", "Suspense", "React.lazy" and other popular React patterns.
  • Written entirely in TypeScript.
  • Fetching flight data from OpenSky Network.
  • Using maps from mapbox with the React friendly wrapper react-map-gl.
  • Using styling components from MUI project.
  • Using Vite to serve the app.

🔌 Usage:

To use the maps from mapbox, you need an appropriate token. You can create one on their website by registering there. Registration is free and all relevant things are covered for development purposes.

For the use of the flight data via The OpenSky Network, I would also recommend creating a corresponding account on their website. The flight data is then provided with a delay of ~5 seconds. Without an account, the delay is ~10 seconds.

Start by cloning the repository and install the packages:

npm install

Create a .env.local file in the root directory containing following entries:

VITE_REACT_MAPBOX_TOKEN=<YOUR_MAPBOX_TOKEN>
VITE_REACT_OSKY_USERNAME=<YOUR_OPENSKYNETWORK_USERNAME>
VITE_REACT_OSKY_PASSWORD=<YOUR_OPENSKYNETWORK_PASSWORD>

Start the project:

npm run preview

📑 License:

react-flight-tracker's People

Contributors

xsnowm4nx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-flight-tracker's Issues

Question

Hi there, I have a question regarding the OpenSky API. I am making something similar and I am having trouble determining the GET request for a particular flight using the ICAO24. Is it possible for you to help me with the "begin" and "end" parameters of the request? I cannot seem to figure out what time interval [begin, end] to choose in order to get the most recent flight information. I need to use this request in order to get the departure and arrival airport information. I am wondering how you did this part. Please see the following for more information:
https://opensky-network.org/apidoc/rest.html#flights-by-aircraft

Thank you.

The map has no flights

When i set up the project with the correct enviroment variables and started the server the only thing i get is a map and no flights displayed.

I get a lot of errors

Hard to deploy

I have tried to deploy this project to Netlify/Cloudflare pages and it is not displaying flights. Where shall this flight tracker be hosted at as it only displays flights whennpm run startis ran and it takes 6~ GB Ram to compile?

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.