Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.16 KB

File metadata and controls

28 lines (17 loc) · 1.16 KB

Globe Graph

This project scrapes flight route data from FlightsFrom.com and displays as a graph using sigma.js.

Backend

The backend has 2 commands:

  • yarn scrape - Scrapes the data from FlightsFrom.com and saves it to a redis database.
  • yarn graph - Converts the data in the redis database to a Graphology graph and saves it to a graph.json file.

You can the the airport from which the scraper starts by changing the line 76 in src/scraper.js:

scrape("ARN");

Frontend

The frontend is a simple vite.js based Vanilla JS app that uses Deck.gl to display the graph.

Simply copy the graph.json file from the backend to the src folder, rename it to data.json and run yarn dev to start the dev server.

Requisites

  • Docker Compose To run the redis database from the docker-compose.yml file.
  • Node.js To run the backend and frontend.
  • Yarn To install the dependencies and run the commands.