{"id":23379077,"url":"https://github.com/colevoss/opendorse-project","last_synced_at":"2025-04-08T05:50:30.226Z","repository":{"id":36818143,"uuid":"188181773","full_name":"colevoss/opendorse-project","owner":"colevoss","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-03T22:27:09.000Z","size":4509,"stargazers_count":1,"open_issues_count":24,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T04:18:10.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colevoss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-23T07:17:08.000Z","updated_at":"2023-03-10T08:36:05.000Z","dependencies_parsed_at":"2023-01-17T05:15:55.093Z","dependency_job_id":null,"html_url":"https://github.com/colevoss/opendorse-project","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colevoss%2Fopendorse-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colevoss%2Fopendorse-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colevoss%2Fopendorse-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colevoss%2Fopendorse-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colevoss","download_url":"https://codeload.github.com/colevoss/opendorse-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785942,"owners_count":20995644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-21T19:16:35.224Z","updated_at":"2025-04-08T05:50:30.191Z","avatar_url":"https://github.com/colevoss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Baseball Stat Graphs by Cole Voss\n\n## Getting Started\n\n#### Clone this repo:\n\n```\n$ git clone git@github.com:colevoss/opendorse-project.git\n```\n\n#### Install dependencies\n\n```\n$ npm install\n\nor\n\n$ yarn install\n```\n\n#### Run application:\n\n```\n$ npm start\n\nor\n\n$ yarn start\n```\n\n#### Open application in browser:\n\n[localhost:3000](http://localhost:3000)\n\n## About this project:\n\nI chose to build a project dealing with MLB baseball stats. Using [this stats API](https://appac.github.io/mlb-data-api-docs/) I was able to put together two different stat charts.\n\nThis first chart you will see loads the top 10-12 leaders in the selected season and batting stat into a bar graph. Try clicking and hovering on a bar to toggle the corresponding data.\n\n![Leaders](images/leaders.png)\n\nNavigating to the Stats page, you can choose a stat, season, team, and player to load stats for. Once a player is chosen, the stats for their entire career will be displayed on a line graph. You can easily switch the stat you want to display for the selected player and the graph will update immediately. Try clicking and hovering on a circle to toggle the corresponding data.\n\n![Stats](images/stats.png)\n\n## About the Tech:\n\nThis project was bootstrapped using `create-react-app`. I chose this because it was the quickest way to get to writing a React application. I am experienced in setting up a web application using webpack and other technologies, but I figured this project did not need such a robust set up.\n\nYou will notice the heavy use of React hooks. I am a big fan of the new Hooks API and had a great time using them in this project. While I used `react-redux`'s `useSelect`, and `useDispatch` hooks, I am very familiar with their standard api of using `mapStateToProps`, `mapDispatchToProps`, and `connect`.\n\nI used `redux-thunk` for asynchronous redux actions along with a custom action creator specifically for async actions. (See [createAsyncAction.js](src/state/createAsyncAction.js)).\n\n##### Tech Used:\n\n- Create React App\n- React Hooks\n- Redux\n  - redux-thunk\n  - redux-logger\n- Sass (.scss)\n- CSS Modules (File.module.scss)\n- D3\n  - d3-array\n  - d3-axis\n  - d3-format\n  - d3-scale\n  - d3-selection\n  - d3-shape\n\n##### Other things I would have loved to have done in this project:\n\n- Unit testing using `jest` and `react-testing-library`\n- Type safety using Flow or Typescript\n- Abstract some more of the D3 Axis components to make them easier to use\n- Make things look better\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolevoss%2Fopendorse-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolevoss%2Fopendorse-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolevoss%2Fopendorse-project/lists"}