/trainsleaving

Liikenneviraston Digitraffic-rajapintaa käyttävä GatsbyJS toteutus jolla käyttäjä saa aikataululistan junista jotka liikkuvat vain valittujen asemien välillä.

Primary LanguageJavaScriptMIT LicenseMIT

Lähtevät junat

Netlify build status

Lahtevat.info

Lahtevat.info avulla saat suodatetun näkymän sinulle tärkeistä lähtevistä junista.

Voit valita näytetäänkö lähijunat, kaukojunat ja peruutetut junat vai ei.

Junien tiedot ladataan Traffic Management Finlandin Digitraffic-rajapinnasta. Rajapinnan lisenssi on CC BY 4.0

Alla GatsbyJS ohjeet projektin käynnistämiseksi lokaalisti.

🚀 Quick start

  1. Install the Gatsby CLI.

    The Gatsby CLI helps you create new sites using Gatsby starters (like this one!)

    # install the Gatsby CLI globally
    npm install -g gatsby-cli
  2. Start developing.

    Navigate into your new site’s directory and start it up.

    cd my-default-starter/
    gatsby develop
  3. Open the source code and start editing!

    Your site is now running at http://localhost:8000!

    Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

    Open the my-default-starter directory in your code editor of choice and edit src/pages/index.js. Save your changes and the browser will update in real time!

🎓 Learning Gatsby

Looking for more guidance? Full documentation for Gatsby lives on the website. Here are some places to start:

  • For most developers, we recommend starting with our in-depth tutorial for creating a site with Gatsby. It starts with zero assumptions about your level of ability and walks through every step of the process.

  • To dive straight into code samples head to our documentation. In particular, check out the “Guides”, API reference, and “Advanced Tutorials” sections in the sidebar.