This project scrapes flight route data from FlightsFrom.com and displays as a graph using sigma.js.
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 agraph.json
file.
You can the the airport from which the scraper starts by changing the line 76 in src/scraper.js
:
scrape("ARN");
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.
- 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.