Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 941 Bytes

README.md

File metadata and controls

65 lines (45 loc) · 941 Bytes

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