This project consists of a React frontend and Django backend for comparing performance run data.
- Python 3.x
- Node.js and npm
- Git
Follow these steps to set up and run the project:
cd perfbackend
source .venv/bin/activateYou should see (.venv) in your terminal prompt indicating the virtual environment is active.
Ensure Django and other required packages are installed:
pip install django requestsOpen a new terminal window/tab and navigate to the project root:
cd react-demo
npm installNavigate to the src directory
cd src
npm startThe React app will start on http://localhost:3000
In the terminal with the activated virtual environment:
cd perfbackend
python3 manage.py runserverThe Django server will start on http://localhost:8000
react-demo/
├── src/ # React frontend source files
│ ├── App.js
│ ├── RunIdForm.js
│ └── ...
├── perfbackend/ # Django backend
│ ├── manage.py
│ ├── perfdata/
│ └── .venv/ # Python virtual environment
├── package.json # React dependencies
└── README.md
- Open your browser to
http://localhost:3000 - Enter two 9-character Run IDs in the form
- Click "Compare" to fetch and display performance data
- View the comparison table and charts
- If you get
react-scripts: command not found, runnpm installin the react-demo directory - If you get
ModuleNotFoundError: No module named 'django', ensure your virtual environment is activated and runpip install django - If you get
ModuleNotFoundError: No module named 'requests', runpip install requestsin the activated virtual environment