Skip to content

Kodsport/sakerhetssm-wargame-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSM wargame platform

Development setup

Install

Install:

DB

Run DB:

cd backend
docker compose up --build

Access it with:

cd backend
docker compose exec db psql -U postgres
docker compose exec db psql ssm_wargame -U postgres

First, connect with psql as shown above and create the database:

CREATE DATABASE ssm_wargame;

Then, run the migrations:

cd backend
./scripts/migrate up

Now you are ready to go!

Backend

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.go

Frontend

Run frontend:

cd frontend
yarn # Installs
yarn dev

Themes for CTFs

To 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9