For the complete documentation index, see llms.txt. This page is also available as Markdown.

Framework Quick Start

💡 Integrate bkend with your preferred framework. This guide assumes you have completed the Quick Start.

Overview

The bkend REST API works the same regardless of framework. Here we cover setup for the two most popular options: Next.js and Flutter.


Prerequisites

Item
Where to Find

Publishable Key

Console > API Keys


Next.js

1. Set Environment Variables

Create a .env.local file in your project root.

NEXT_PUBLIC_BKEND_API_URL=https://api-client.bkend.ai
NEXT_PUBLIC_BKEND_PUBLISHABLE_KEY={pk_publishable_key}

2. Create a Fetch Helper

3. Fetch Data Example


Flutter

1. Environment Setup

Create a config file in the lib/config/ directory.

2. HTTP Client Setup

Use the dio package.

3. Fetch Data Example


Next Steps

Last updated