Code Monkey home page Code Monkey logo

gatsby-source-ergast's Introduction

Gatsby

Ergast API for Gatsby

Simple source plugin to grab the latest Formula 1 season data from the fantastic Ergast API.


๐ŸŽ Quick start

yarn add gatsby-source-ergast

or

npm i gatsby-source-ergast

Add this to your gatsby-config.js file ๐Ÿ‘

plugins: [
  "gatsby-source-ergast",
],

Enjoy ๐ŸŽ‰


๐Ÿง What's inside?

/gatsby-source-ergast
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ gatsby-node.js
โ”œโ”€โ”€ index.js
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md
  • .gitignore: Stuff not to track.
  • gatsby-node.js: The good stuff ๐Ÿ‘€.
  • index.js: A file that will be loaded by default when the plugin is required by another application.
  • LICENSE: This source plugin is licensed under the 0BSD license.
  • package.json: A manifest file, which includes things like metadata.
  • README.md: A text file containing useful reference information.

๐Ÿ™ Contributing

Feel free to submit updates/PRs for this source plugin. It's still very basic and could be expanded to include a lot more control over the data pulled from Ergast.


Notes:

Inline with the request from Ergast to keep calls to a minimum, Gatsby will call the API to reqest data at build-time. The slight downside being that you'll need to manually build the site (or feel free to make a webhook) after a race meeting, to ensure the results/standings and times are all up to date.

If this is something i end up creating, i'll update the plugin readme to reflect this.

gatsby-source-ergast's People

Contributors

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