DistributedReplays
👨💻 Rocket League Replay Collection and Analysis Server that powers calculated.gg
Install / Use
/learn @SaltieRL/DistributedReplaysREADME
Calculated.gg Backend
<img src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.herokuapp.com%2Fcalculated"> <img src="https://img.shields.io/discord/482991399017512960.svg?colorB=7581dc&logo=discord&logoColor=white">
Setup
- Install Python 3.6/pip (do not use Anaconda)
pip3 install -r requirements.txt- Install and run Redis with default port + settings (Windows is included, Ubuntu)
- Install postgreSQL (Windows, Ubuntu, Mac)
- Make sure that postgreSQL is in the path
- If only for local development change the password in Ubuntu to
postgres - Ensure you have the latest LTS version of node and npm installed
- Run
cd webapp,npm install
Running
Ubuntu
- Run RLBotServer.py.
cd webapp,npm start
Windows
- Run win_run.bat
- You can optionally kill the python process and start it in an IDE
- You can log into psql command line with
psql postgresql://postgres:postgres@localhost - If the included redis does not work here is install directions
- DO NOT USE IDLE, either use command line or pycharm (pycharm is recommended for development of backend)
Mac
- Run mac_run.sh
You need to run in python3. Mac comes with python2 by default so do not run any commands without the 3
Structure
The structure of the server is split into different directories:
blueprints- Backend Python code, split into subsectionsdatabase- Database objects and querieshelpers- Various scripts to help in maintaining the serverstatic- Static website files (JS/CSS/images)tasks- Contains celery code user for processing the queue of replaystemplates- Dynamic website files (rendered HTML templates)
Setup and Running with Docker (Docs WIP)
Basic Dependencies
-
Docker Community Edition (Stable)
Docker will run Postgres, Redis, Flask, Celery, and Node inside linux based "Containers" on most platforms. Download and install Docker and Docker Compose for your platform:
Run Everything
# Start containers. Should be in project root directory (where docker-compose.yml is)
docker-compose up
# See your containers running
docker ps
Now go to localhost:3000 and the site should be running.
Testing
We run with pytest and use some features from it. If you are using an ide (pycharm/intellij) you must change the default runner from unit tests to pytests You can make this change by going to settings and searching for "unittest" Python unit test configuration
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
92.1kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
343.3kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
