Framework Quick Start

circle-info

💡 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}
circle-exclamation

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

circle-check

Next Steps

Last updated