- Check your browser is up to date.(some old version don't support Array.flat())
- Use Git
git clone https://github.com/rootsofworld/mlb-data-server.git
cd mlb-data-server
npm install
cd view && npm run build && cd ..
node server.js
- Use Docker
docker pull hsf99code/pitchvis:latest
docker run -dp 3000:3000 hsf99code/pitchvis
只列出較重要的檔案
root
+--- view
+--- components
+--- BarChart.jsx
+--- BarChartWithoutAxis.jsx
+--- Bases.jsx
+--- Filter.jsx
+--- PitcherFilter.jsx
+--- StateFilter.jsx
+--- Scatter.jsx
+--- Timeline.jsx
+--- PitcherList.jsx
+--- GameList.jsx
+--- PitchSeqCardBoard.jsx
+--- PitchSeqCard.jsx
+--- LinearLegend.jsx
+--- PitchTypeMatrix.jsx
+--- SpeedMatrix.jsx
+--- LocationMatrix.jsx
+--- xAxis.jsx
+--- yAxis.jsx
+--- utils
+--- ActionMaker.js
+--- getTypeSet.js
+--- GlobalStateInit.js
+--- transitionMatrix.js
+--- reducer
+--- GlobalReducer.js
+--- index.js
+--- zone.js
+--- server.js