Skip to content

andrejkn/nfl-rushing

Repository files navigation

The Rush App

Understanding the data

In this repo is the file rushing.json. It contains data about NFL players' rushing statistics. Each entry contains the following information

  • Player (Player's name)
  • Team (Player's team abreviation)
  • Pos (Player's postion)
  • Att/G (Rushing Attempts Per Game Average)
  • Att (Rushing Attempts)
  • Yds (Total Rushing Yards)
  • Avg (Rushing Average Yards Per Attempt)
  • Yds/G (Rushing Yards Per Game)
  • TD (Total Rushing Touchdowns)
  • Lng (Longest Rush -- a T represents a touchdown occurred)
  • 1st (Rushing First Downs)
  • 1st% (Rushing First Down Percentage)
  • 20+ (Rushing 20+ Yards Each)
  • 40+ (Rushing 40+ Yards Each)
  • FUM (Rushing Fumbles)
The App

This app is able to do the following things:

  1. Displays a table with the contents of rushing.json
  2. The user is able to sort the players by Total Rushing Yards, Longest Rush and Total Rushing Touchdowns
  3. The user is able to filter by the player's name
  4. The user is able to download the sorted/filtered data as a CSV

Installation and running this solution

To run this app in your local environment using Docker. If you don't have Docker installed already please visit installation page for more details.

Once you have Docker installed and cloned this repo locally, you can run server and client apps in a container by following these steps:

  • Clone this repository:
git clone [email protected]:andrejkn/nfl-rushing.git
  • Change directory to the location of the cloned repository:
cd ~/nfl-rushing
  • Run the app in a docker container:
docker-compose up -d

This last step will start 3 containers, one for the PostgreSQL database, one for the Python/FastAPI server app and one for the React/Redux client app. The rushing.json will be automatically loaded in the DB.

The server, which comes with swagger, app can be accessed through: http://localhost:8000/docs

For any questions regarding this repo and the setup process you can reach out to me via email [email protected]

About

NFL players' rushing statistics app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published