/pitlane

Formula 1 race statistics

Primary LanguageJavaScript

Pitlane

Visualize race statistics for all you Formula 1 nerds out there

What stats?

Statistics by race:

  • average lap times for each race in season
  • average speed for each race in season
  • fastest lap times for each race

Statistics by driver:

  • fastest lap time for each race
  • lap times for each race as box-and-whiskers plot
  • average lap times for each race in season
  • points earned for each race in season

Statistics by team

  • lap tiems for each race as box-and-whiskers plot
  • points raced progression throughout the season
  • points earned per season
  • points-per-race under current points system

3rd party dependencies

Frontend

# react
npm install react

# Material-UI (for React)
npm install --save material-ui@next

# Axios - Asynchronous HTTP requests
npm install --save axios

# plotly.js & plotly for React
npm install --save react-plotly.js plotly.js

Backend

# Flask
sudo apt-get install python-flask

# Flask CORS (cross origin)
pip install flask-cors --user

# psycopg2 - to interface with Postgres
pip install psycopg2 psycopg2-client --user