Dev Setup & Deployment
Guide for setting up a local SOCSuite development environment. Audience: developers working with the project for the first time.
Prerequisites
| Tool | Version | Note |
|---|---|---|
| Go | 1.26+ | go version |
| Node.js | 20 LTS+ | node --version |
| pnpm | 9+ | pnpm --version |
| Docker | 24+ | For local services |
| kubectl | 1.30+ | Kubernetes deployment |
| make | — | Build automation |
| Git | 2.40+ | Conventional commits |
Initial Setup (Step by Step)
1. Clone the Repository
git clone https://gitlab.com/imvee/socsuite.git
cd socsuite2. Install Dependencies
make installThis runs:
pnpm install(Frontend + packages)cd apps/api && go mod download(Backend)
3. Environment Variables
cp .env.example .env:::warn [No real secrets in .env]
.env is in .gitignore. Only .env.example is committed — it contains placeholders, not real values.
:::
4. Start Services
# All dev servers (frontend + backend)
make dev
# Frontend only
make dev-web
# Backend only
make dev-apiServices and Ports
| Service | URL / Port |
|---|---|
| App | https://socsuite.dev.imvee.de |
| Auth | https://auth.dev.imvee.de |
| SIEM | https://siem.dev.imvee.de |
| API (direct) | :8080 |
| Frontend (Vite) | :3000 |
| PostgreSQL | :5432 |
| Redis | :6379 |
| OpenSearch | :9200 |
| Keycloak | :8080 (via auth.dev.imvee.de) |
| Agent WebSocket | wss://socsuite.dev.imvee.de/ws/agents/:id (via Gateway) |
Kubernetes Deployment
kubectl apply -k infrastructure/k8s/overlays/dev:::info [Details]
Full documentation on K8s deploy workflow, Gateway API and CI/CD pipeline →
infrastructure/AGENTS.md
:::
Lint & Code Quality
All checks must pass before a commit:
| Type | Command | Severity |
|---|---|---|
| TypeScript/JS | npx eslint apps/web/src --max-warnings=0 | Blocker |
| Formatting | npx prettier --check . | Warning |
| Go | golangci-lint run ./... | Blocker |
| YAML | yamllint | Blocker |
| Shell | shellcheck | Blocker |
| SQL | sqlfluff | Blocker |
:::info [Lint configs]
Configuration files in the repo root: golangci.yml, prettier.json, eslint.config.js, yamllint.yml
:::
IDE Setup (Recommended)
VS Code Extensions
- Go (
golang.go) — Go support with gopls - ESLint (
dbaeumer.vscode-eslint) - Prettier (
esbenp.prettier-vscode) - YAML (
redhat.vscode-yaml)
Formatting
- Go:
gofmtstyle (tabs) - TypeScript/JS: Prettier (2 spaces, semicolons, trailing commas)
- No
anyin TypeScript → useunknown
Git Workflow
Branch Structure
main → Stable (until MVP: direct commits)
feature/* → Features
fix/* → Bug fixes:::info [Until MVP: direct to main]
During the MVP phase, commits go directly to main. From post-MVP: own branch,
no direct commits to main. No force-push on shared branches.
:::
Commit Conventions
All commits follow the Conventional Commits format:
| Prefix | Usage |
|---|---|
feat: | New feature |
fix: | Bug fix |
refactor: | Refactoring (no feature, no fix) |
test: | Add or update tests |
docs: | Documentation |
chore: | Maintenance tasks, dependencies |
What is Never Committed
.envfiles (only.env.exampleis allowed)node_modules/dist/vendor/- Manually edited lock files
- Binary files
Troubleshooting
Keycloak redirect fails
SameSite=Strict breaks the OAuth redirect. The application uses SameSite=Lax — make sure you access it via https://socsuite.dev.imvee.de (not localhost).
Database connection failed
Check whether PostgreSQL is reachable on port :5432:
pg_isready -h localhost -p 5432Port conflict on :8080
API and Keycloak both use :8080. Keycloak is routed via auth.dev.imvee.de — make sure the /etc/hosts entries are correctly set.
Frontend shows blank page
# Clear cache and restart
rm -rf node_modules/.vite
pnpm devSee Also
- Architecture — Monorepo structure and tech stack
- Operations — Monitoring, backup, maintenance
- Contributing — Git workflow and code standards
- Test Strategy — Test pyramid and coverage goals