# Installation
URL: /docs/installation
LLM index: /llms.txt
Description: How to install and set up better-auth-nextjs-prisma-ts

# Installation

Follow these steps to install and configure better-auth-nextjs-prisma-ts.

<Callout type="info">
  Prerequisites: Node.js 18+ and a package manager (pnpm, npm, or yarn).
</Callout>

## Install Dependencies

```bash
pnpm add @farming-labs/docs
```

## Configuration

Your project includes a `docs.config.ts` at the root:

```ts
import { defineDocs } from "@farming-labs/docs";
import { colorful } from "@farming-labs/theme/colorful";

export default defineDocs({
  entry: "docs",
  theme: colorful({
    ui: { colors: { primary: "#6366f1" } },
  }),
});
```

## Project Structure

```
app/
  docs/
    layout.tsx          # Docs layout
    page.mdx            # /docs
    installation/
      page.mdx          # /docs/installation
    quickstart/
      page.mdx          # /docs/quickstart
docs.config.ts          # Docs configuration
next.config.ts          # Next.js config with withDocs()
```

## What's Next?

Head to the [Quickstart](/docs/quickstart) guide to start writing your first page.