Skip to content

The backend for Robot Rumble. Handles the site and matchmaking.

License

Notifications You must be signed in to change notification settings

robot-rumble/backend

Repository files navigation

robot-rumble

Level 1: only edit backend

  1. Install yarn, aws-cli, Docker, and docker-compose.

  2. Clone the repos:

mkdir rr && cd rr
git clone https://github.com/robot-rumble/backend
git clone https://github.com/robot-rumble/battle-viewer
  1. Fetch WASM worker assets
aws --no-sign-request s3 sync s3://rr-public-assets/worker-assets backend/public/dist/
aws --no-sign-request s3 sync s3://rr-public-assets/lang-runners backend/public/lang-runners/
  1. Start the battle-viewer webpack process:
cd battle-viewer
yarn # or npm install
yarn watch # or npm run watch
  1. Open a new terminal window and start docker:
# IN A NEW WINDOW:
sudo systemctl start docker

# If installing on linux, follow these steps to execute docker without root access:
# https://docs.docker.com/engine/install/linux-postinstall/
  1. Start the backend:
cd rr/backend
docker-compose up
  1. Open localhost:9000 and apply the migration when prompted

  2. Seed the database. Note that you won't be able to create accounts through the site because email verification won't work.

docker-compose exec backend sh -c "cat conf/db/seeds.scala | DB_HOST=db sbt console"

Level 2: edit logic

  1. Install rustup, wasm-pack, wasienv, clang, wasmer.

  2. Clone the repos:

# /rr
git clone https://github.com/robot-rumble/logic --recursive
  1. Build.
# /rr
bash logic/build-for-web.sh

About

The backend for Robot Rumble. Handles the site and matchmaking.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •