Skip to content

Getting Started

Run the API and the web app on your machine against containers for everything else.

  1. Clone the repository and install the JavaScript dependencies:

    Terminal window
    git clone https://github.com/nevalenti/TestCraft.git
    cd TestCraft
    pnpm install
  2. Start the containers (Postgres, Redis, RabbitMQ, MinIO, Keycloak, Mailpit, GlitchTip and the observability stack):

    Terminal window
    just up

    The first run creates .env, apps/web/.env and e2e/.env from their .env.example. Later runs add any keys the examples gained since.

  3. Run the API and the web app, both in one terminal:

    Terminal window
    just dev

    The API applies migrations and seeds sample data before it starts, then restarts when its code changes. To run them separately, use just api-serve and just web-dev.

  4. Open http://localhost:3000 and sign in as e2e@testcraft.pro with the password e2e-test-password.

Service URL Notes
Web http://localhost:3000
API http://localhost:5000
API reference http://localhost:5000/api/docs
Keycloak http://localhost:8080 KEYCLOAK_ADMIN from .env
Mailpit http://localhost:8025 every email the stack sends
Grafana http://localhost:3001 logs, traces and metrics
GlitchTip http://localhost:8001 error tracking
MinIO console http://localhost:9001 attachments and imported reports
RabbitMQ http://localhost:15672
pgweb http://localhost:8081 browse the Postgres databases
Terminal window
just down # stop the containers, keep their data
just nuke # stop the containers and delete every volume (asks first)
just api-db-reset # drop and recreate the dev database, then migrate
just api-migration AddX # add an EF Core migration
just codegen # regenerate @testcraft/types and the web SDK after changing apps/Api/openapi/contract/v1.json
just api-test-unit # .NET unit and architecture tests, no Docker needed
just api-test # every .NET test project, including integration tests
pnpm --filter testcraft-web test
just lint
just format

To run the Helm chart the way production does, see Local cluster.