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

# Example Server

> Minimal example showing how to run a Databite server

## Overview

This example shows a minimal Databite server that exposes REST endpoints for your frontend to use.

## Repository

The example server is available in our open-source repository:

<Card title="View on GitHub" icon="github" href="https://github.com/DatabiteDev/databite/tree/main/packages/example-server">
  Explore the complete implementation with source code and configuration
</Card>

## Getting Started

### Prerequisites

* Node.js >= 16.0.0
* npm, yarn, pnpm, or bun

### Steps

1. Installation

```bash theme={null}
# Clone the repository
git clone https://github.com/DatabiteDev/databite.git
cd databite/packages/example-server

# Install dependencies
npm install

# Or with other package managers
yarn install
pnpm install
bun install
```

2. Configure environment

```bash theme={null}
# .env.local
SLACK_CLIENT_ID=your-slack-client-id
SLACK_CLIENT_SECRET=your-slack-client-secret
SLACK_REDIRECT_URI=http://localhost:3001/auth/slack/callback
```

3. Start the development server:

```bash theme={null}
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

4. Test endpoints

```bash theme={null}
curl http://localhost:3001/api/health
curl http://localhost:3001/api/integrations
```

Next, connect from your frontend using `@databite/connect`.
