IMVEEDev Portal

Dev Setup & Deployment

Guide for setting up a local SOCSuite development environment. Audience: developers working with the project for the first time.

Prerequisites

ToolVersionNote
Go1.26+go version
Node.js20 LTS+node --version
pnpm9+pnpm --version
Docker24+For local services
kubectl1.30+Kubernetes deployment
make—Build automation
Git2.40+Conventional commits

Initial Setup (Step by Step)

1. Clone the Repository

git clone https://gitlab.com/imvee/socsuite.git
cd socsuite

2. Install Dependencies

make install

This 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-api

Services and Ports

ServiceURL / Port
Apphttps://socsuite.dev.imvee.de
Authhttps://auth.dev.imvee.de
SIEMhttps://siem.dev.imvee.de
API (direct):8080
Frontend (Vite):3000
PostgreSQL:5432
Redis:6379
OpenSearch:9200
Keycloak:8080 (via auth.dev.imvee.de)
Agent WebSocketwss://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:

TypeCommandSeverity
TypeScript/JSnpx eslint apps/web/src --max-warnings=0Blocker
Formattingnpx prettier --check .Warning
Gogolangci-lint run ./...Blocker
YAMLyamllintBlocker
ShellshellcheckBlocker
SQLsqlfluffBlocker

:::info [Lint configs] Configuration files in the repo root: golangci.yml, prettier.json, eslint.config.js, yamllint.yml :::


VS Code Extensions

  • Go (golang.go) — Go support with gopls
  • ESLint (dbaeumer.vscode-eslint)
  • Prettier (esbenp.prettier-vscode)
  • YAML (redhat.vscode-yaml)

Formatting

  • Go: gofmt style (tabs)
  • TypeScript/JS: Prettier (2 spaces, semicolons, trailing commas)
  • No any in TypeScript → use unknown

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:

PrefixUsage
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

  • .env files (only .env.example is 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 5432

Port 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 dev

See Also

On this page