- The function of this app is to allow NBA fans to search for their favorite players and compare their current season stats with other players with a similiar caliber. It is oriented for everyone but is specifically a useful source for people that play fantasy basketball and need updated stats.
-
MVP for this website consists of a useable "compare players" page that allows the user to input two of their preferred players and be redirected to a stats page that provides them with a comparison of the current season averages of the two players.
-
Post MVP is the players list page that provides the users with a current top 20 players list as well as a link to all current NBA players.
- Grab information from an NBA API through a fetch request with axios
- Provide the user with an input field to access the API data
- Take that data and output the values of the player requested by the user
- Use another NBA API to grab player ID's
- Interpolate user ID's in the url of a png website to access player pictures
- Print pictures of the selected players along with the stats
Components | Description |
---|---|
App | Contains the main functions and API as well as the Router and its components and the nav bar |
Fighter | Shows two form inputs that interact with the user |
Stats | Renders multiple stat values of the selected players and their headshots |
PlayerList | Provides a set of the current top 20 NBA players |
Home | Has a video embedded in the background showing a basketball clip |
Header | Retains the title of the webpage that is rendered on all pages |
Footer | Retains a rights statement that is rendered on all pages |
Component | Priority | Estimated Time | Time Invested | Actual Time |
---|---|---|---|---|
Creating Components | H | 1hr | 2hrs | 2hrs |
Setting up + Initializing API | H | 4hrs | 6hrs | 6hrs |
Making links and lining routes | M | 1hr | 2hrs | 2hrs |
Adding Form and passing its changes | M | 3hrs | 3hrs | 3hrs |
Passing state and updating stats component | H | 2hrs | 3hrs | 3hrs |
Retrieving and implementing new API with separate url | H | 4hrs | 4hrs | 4hrs |
Total | N/A | 15hrs | 20hrs | 20hrs |
- Axios was used to assist the import of API's onto the code