Skip to content

chatmartin/player-pathways-team157

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Overview

This project implements a C++ backend using the Crow framework to support queries on a dynamic graph built from soccer and basketball data relationships. The frontend, written in React, lets users explore connection paths between soccer or basketball players. BFS and Dijkstra algorithms are implemented to find the shortest path between any two players.

Getting Started

Technologies Used

  • C++ (Crow HTTP server)
  • React.js
  • CSV as data source

Installation Instructions

  1. Clone the repository:
git clone https://github.com/chatmartin/player-pathways-team157.git
  1. Build the C++ backend
cd player-pathways-team157
mkdir build && cd build
cmake ..
make
  1. Run the backend server:
./main
  1. Navigate to the frontend folder and start React:
cd frontend
npm install
npm install axios
npm install @mui/material @emotion/react @emotion/styled
npm start

Running the Backend

The C++ backend reads CSV files and builds a graph of player-team relationships.

Endpoints:

  • /fball_graph — returns node-link JSON graph for soccer
  • /bball_graph — returns node-link JSON graph for basketball
  • /fballAlgo — POST body with source, target, algo="bfs" or "dijkstra"
  • /bballAlgo — same but for basketball

Running the Frontend

The frontend renders the graph and makes POST requests to the backend to fetch paths. Players can be selected via dropdown and paths are visualized interactively.

Team Workflow

Branches

  • main — Final project state
  • frontend-feature — React UI
  • player-class — Player graph modeling

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Generated from COP3530/P2-template