vk dev
vk dev [options]Options
Section titled “Options”| Option | Description | Default |
|---|---|---|
-s, --stage <stage> | Stage name | dev |
-p, --port <port> | Server port | 3000 |
Description
Section titled “Description”Starts a fully local development server. No AWS credentials or cloud resources required.
- Discovers routes from your
routesDirand serves them via HTTP - Starts Docker Compose services for infrastructure (Postgres, Redis, MinIO)
- Converts HTTP requests to Lambda-compatible
APIGatewayProxyEventV2events - Loads TypeScript handlers at runtime (no build step needed)
Examples
Section titled “Examples”# Start with defaults (port 3000)vk dev
# Custom portvk dev --port 8080
# Custom stagevk dev --stage my-featureRequirements
Section titled “Requirements”- Docker running (for database, cache, and storage services)
- VentureKit project with
vk.config.ts - Dependencies installed (
npm install)
No AWS credentials are needed for local development.
How It Works
Section titled “How It Works”- Loads
vk.config.tsusing runtime TypeScript transpilation (via jiti) - Generates a
docker-compose.ymlin.vk/based on your infrastructure intents - Starts Docker services (Postgres, Redis, MinIO) as needed
- Discovers routes from your
routesDirand maps them to HTTP endpoints - Serves requests locally, converting them to Lambda event format
- Route handlers are loaded on-demand — edit a file and the next request uses the new code
Local Services
Section titled “Local Services”| Infrastructure Intent | Local Service | Port |
|---|---|---|
databases (postgres) | PostgreSQL (Docker) | 5432 |
caches (redis) | Redis (Docker) | 6379 |
storage | MinIO (Docker) | 9000 |