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 -- aT
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)
This app is able to do the following things:
- Displays a table with the contents of
rushing.json
- The user is able to sort the players by Total Rushing Yards, Longest Rush and Total Rushing Touchdowns
- The user is able to filter by the player's name
- The user is able to download the sorted/filtered data as a CSV
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.
- Open the client app in your browser: http://localhost:3000
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]