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

# Client Setup

> How to install and run the Posthoot client locally

# Client Setup

## Prerequisites

* Node.js 20+ (or Bun 1.1+)
* pnpm/npm/yarn (your preference)
* Git

## Install

```bash theme={"dark"}
cd client
pnpm install   # or npm install / yarn
```

## Run Dev Server

```bash theme={"dark"}
pnpm dev       # http://localhost:3000
```

## Build & Start

```bash theme={"dark"}
pnpm build
pnpm start     # production
```

## Scripts (package.json)

* `dev`: start Next.js dev server
* `build`: build production
* `start`: start production server
* `test`: run unit tests

See also: [Environment](/client/env), [Development](/client/development)
