-
Install yarn, aws-cli, Docker, and docker-compose.
-
Clone the repos:
mkdir rr && cd rr
git clone https://github.com/robot-rumble/backend
git clone https://github.com/robot-rumble/battle-viewer
- 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/
- Start the battle-viewer webpack process:
cd battle-viewer
yarn # or npm install
yarn watch # or npm run watch
- 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/
- Start the backend:
cd rr/backend
docker-compose up
-
Open
localhost:9000
and apply the migration when prompted -
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"
# /rr
git clone https://github.com/robot-rumble/logic --recursive
- Build.
# /rr
bash logic/build-for-web.sh