Giter Club home page Giter Club logo

globe-graph's Introduction

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.

globe-graph's People

Contributors

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