> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 3.1 Prerequisites and configuration

> Tools, versions, and configuration needed to run Kcode Robot Suite locally.

## 3.1.1 Prerequisites

| Requirement | Version | Notes |
| - | - | - |
| Node.js | 22 | Used by CI and required by the repository guidelines. |
| pnpm | 10.12.1 | Pinned by the `packageManager` field in `package.json`. |
| Git | Any recent version | To clone the repository. |

> [!TIP]
>
> Enable Corepack (`corepack enable`) so Node uses the pinned pnpm version automatically.

## 3.1.2 Get the code

```bash theme={"system"}
git clone https://github.com/TQKNG/Kcode-Robot-Suite.git
cd Kcode-Robot-Suite
```

## 3.1.3 Configuration

No configuration is required for local development.

| Variable | Required | Default | Purpose |
| - | - | - | - |
| `NEXT_PUBLIC_BASE_PATH` | No | Empty | Serve the app under a base path, such as `/robots`. Set it before `pnpm dev` or `pnpm build`. |

## 3.1.4 Local sign-in account

| Username | Password | Use |
| - | - | - |
| `admin` | `admin` | Local development only. Do not use for production access. |

## 3.1.5 Workspace layout

`pnpm-workspace.yaml` includes `apps/*`, `packages/*`, and `plugins/*`. Root scripts forward to the `@kcode/web` app.

| Command | Runs |
| - | - |
| `pnpm dev` | `pnpm --filter @kcode/web dev` |
| `pnpm build` | `pnpm --filter @kcode/web build` |
| `pnpm start` | `pnpm --filter @kcode/web start` |
| `pnpm lint` | `pnpm --filter @kcode/web lint` |
| `pnpm typecheck` | `pnpm -r typecheck` |
| `pnpm test` | `vitest run` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.