Skip to content

Development

Prerequisites

  • JDK 25 (Temurin recommended)
  • Node.js 22.22+ (required by react-router v8 at build time)
  • Docker (for Testcontainers)

Clone and Build

git clone https://github.com/WolfTasks/TaskWolf.git
cd TaskWolf

Backend

docker compose -f docker-compose.dev.yml up -d db   # PostgreSQL 16 on localhost:5432 (taskowolf/taskowolf)
cd backend
./gradlew bootRun

The backend starts on http://localhost:8080 with the dev profile (local PostgreSQL, Swagger UI enabled). The Flyway migrations are PostgreSQL-only, so there is no in-memory database. Point the dev profile at another database with TW_DB_URL / TW_DB_USER / TW_DB_PASS. Data survives restarts in the dev-pgdata volume (docker compose -f docker-compose.dev.yml down -v resets it).

Frontend

cd frontend
npm install
npm run dev

The frontend dev server starts on http://localhost:5173 and proxies API calls to localhost:8080.

Running Tests

Backend

cd backend
./gradlew test

Tests use H2 for unit tests and Testcontainers (PostgreSQL) for integration tests.

Windows note: Docker Desktop must be running (Testcontainers 2 negotiates the Docker API version itself; no TCP socket needed).

Frontend

cd frontend
npm run build   # TypeScript + Vite build check

Database Migrations

Flyway migrations live in backend/src/main/resources/db/migration/. The current version is V21. New migrations must follow the naming convention V{n}__{description}.sql.

Project Structure

TaskWolf/
├── backend/          # Kotlin / Spring Boot
│   └── src/
│       ├── main/kotlin/com/taskowolf/
│       │   ├── auth/         # JWT, OAuth2, SSO, API keys
│       │   ├── audit/        # Audit logs
│       │   ├── organizations/# Multi-tenancy
│       │   ├── servicedesk/  # SLA, incidents
│       │   ├── projects/     # Projects, workflows
│       │   ├── issues/       # Issue lifecycle
│       │   ├── sprints/      # Sprint management
│       │   ├── boards/       # Kanban/Scrum
│       │   ├── automation/   # No-code rules
│       │   ├── reports/      # Velocity, cycle time
│       │   └── integrations/ # Webhooks, GitHub, GitLab
│       └── resources/
│           └── db/migration/ # Flyway SQL migrations V1–V21
└── frontend/         # React 19 / TypeScript / Vite

Architecture

TaskWolf is a modular monolith. Modules communicate via Spring ApplicationEvents — no direct service-to-service calls across module boundaries. Each module owns its domain, application, infrastructure, and API layers.