Install:
- Docker (for db)
- Go
migrateCLI - https://github.com/golang-migrate/migrate/tree/master/cmd/migrate- nodejs and yarn - https://yarnpkg.com/getting-started/install
Run DB:
cd backend
docker compose up --buildAccess it with:
cd backend
docker compose exec db psql -U postgres
docker compose exec db psql ssm_wargame -U postgresFirst, connect with psql as shown above and create the database:
CREATE DATABASE ssm_wargame;Then, run the migrations:
cd backend
./scripts/migrate upNow you are ready to go!
Copy backend/.env.example to backend/.env and change it. The s3 stuff is
outdated. See backend/internal/config/config.go for the full structure. Run
backend:
cd backend
go run cmd/api/main.goRun frontend:
cd frontend
yarn # Installs
yarn devTo use a theme simply choose it in the theme selector when creating a ctf.
To upload/use your own firstly:
Copy the CSS file into the /public/themes/ directory.
Edit the CSS to match the ctf elements (see examples "purple.css" & "dark.css").
Add the filename to frontend/utils/themes.ts