Stacks Wars

Getting started

Clone the workspace, layout, install, and run locally.

Workspace layout

PathRole
backend/Cargo workspace: sw-domain, sw-plugin, sw-server
frontend/Bun + Next.js arena UI
checkers/, lexi-wars/, ludo/, ludo-rush/Game crates
docs/This documentation site
backend/sw-vault/Clarity vault (sw-vault-v1)

Clone

git clone https://github.com/Stacks-Wars/backend.git
git clone https://github.com/Stacks-Wars/frontend.git
git clone https://github.com/Stacks-Wars/checkers.git
# …other games / docs as needed

Install

Backend

cd backend
cp .env.example .env   # fill required values
# Postgres + Redis required
cargo build -p sw-server

Frontend

cd frontend
cp env.example .env.local
bun install

Game crate (example)

cd checkers
cargo build

Run locally

  1. Start Postgres and Redis.
  2. cd backend && cargo run -p sw-server (runs migrations).
  3. cd frontend && bun devhttp://localhost:3000
  4. Optional: docker compose in backend/ for Redis + server image.

See Environment variables and Local development.

On this page