Skip to content

Getting started

LeanPortfolio connects to your Azure DevOps organization with a read-only token and turns its work items, iterations and pull requests into the views a product or delivery lead needs: a portfolio roadmap per team, OKRs linked to epics, and flow metrics that say how work moves.

It is free software (AGPL-3.0), runs as one docker compose stack, and every user brings their own Azure DevOps token, so there are no shared credentials to manage.

You need Docker with Compose. Node and pnpm are only needed to develop the frontend.

  1. Start the stack. Clone the repository, create the two local files and bring everything up:

    Terminal window
    git clone https://github.com/Lean-Improvements/LeanPortfolio.git
    cd LeanPortfolio
    cp docker-compose.override.yml.example docker-compose.override.yml
    echo "ENVIRONMENT=development" > .env
    docker compose up --build
    • docker-compose.override.yml publishes ports 80 and 8000 on your machine. The base docker-compose.yml publishes none on purpose: in production a reverse proxy owns 80 and 443.
    • ENVIRONMENT=development lets the backend boot with the example secrets. The compose file defaults to production, where it refuses them.
  2. Create a user. Signing up sends a verification code by email, which needs AWS SES. To try LeanPortfolio locally, create a verified user from another terminal instead:

    Terminal window
    docker compose exec leanportfolio-backend python scripts/seed_e2e_user.py
  3. Sign in. Open http://localhost and, on Sign In, enter e2e@example.com as Email and E2ETest123* as Password. Press Sign In.

  4. Connect Azure DevOps. Go to Settings → Datasource and connect your organization with a read-only token: see Azure DevOps.

  5. Sync your first view. Create a roadmap or a burndown and press Sync.

Stop the stack with docker compose down, which keeps your data, or docker compose down -v, which deletes it.

The migration container exits with “JWT_SECRET is weak or a known default”

Section titled “The migration container exits with “JWT_SECRET is weak or a known default””

The .env file is missing ENVIRONMENT=development, so the stack runs as production and the backend refuses the example JWT_SECRET and ENCRYPTION_KEY. Create the file as in step 1 and run docker compose up --build again.

The ports are not published: docker-compose.override.yml is missing. Copy it from docker-compose.override.yml.example as in step 1. Compose loads it on every up.

Sign-up emails need AWS SES (AWS_* and SENDER_EMAIL). Locally, create the user with the script in step 2.