Coder Social home page Coder Social logo

njs-ergastf1api's Introduction

NJS-ErgastF1API

Conversion of the ergast.com API from PHP to nodeJS

Getting Started

Instructions for Use Using Docker Compose

  • install docker
  • download and unzip the contents repository
  • cd into the root folder and run: docker-compose up --build -d --remove-orphans
  • give everything a minute or to to come up and then test the API at: http://localhost:8080/

Test

After verifying that everything works, here's what you can try to add after the base URL

  • drivers
  • constructors
  • pitstops
  • laps
  • standings/constructors
  • standings/drivers
  • races
  • status
  • circuits
  • seasons
  • qualifying
  • results

Optional get parameters

  • year
  • round
  • constructor
  • circuit
  • driver
  • grid
  • result
  • fastest
  • status
  • driverStandings
  • constructorStandings
  • laps
  • pitstop

Example

  • Returns all the drivers who raced in 2019 : http://localhost:8080/drivers?year=2019
  • Returns all the lap times made by Vettel in the 2019 Canadian Grand Prix : http://localhost:8080/laps?year=2019&round=7&driver=vettel

Extra

  • You can specify in the url to have more results at a time, adding ?limit=(number)&offset=(number)
  • If you want to see the SQL query generated by the request you made, add ?sql=true to the web address

Authors

  • Davide Albiero - Initial work

njs-ergastf1api's People

Contributors

edivad99 avatar

Watchers

James Cloos 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.