Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,35 @@ Embedded tokens are short-lived (15-minutes) and only allow an end user to creat
3. Create a `.env` file in the `/demo` directory:

```env
VITE_AB_EMBEDDED_TOKEN=""
CLIENT_ID=
CLIENT_SECRET=
ORGANIZATION_ID=
WORKSPACE_ID=
B_BASE_URL=
```

You can fetch an Airbyte Embedded token using the curl request example above.

4. Run the demo app using `pnpm dev` and access a very simple example UI at `https://localhost:3003` in your browser.
Start the backend server:

```bash
env $(cat .env | xargs) node server.js
```

The server will start at `https://localhost:3001`.

To start the frontend serve:

```bash
npx serve .
```

You may need to accept the self-signed certificate warning in your browser.

## Project Structure

- `index.html` - Main HTML file with widget container
- `vite.config.ts` - Vite configuration with HTTPS setup
- `server.js` - Backend server requesting the embedded URL
- `.env` - Environment variables (not committed to git)

## Note
Expand Down
58 changes: 0 additions & 58 deletions demo/index.html

This file was deleted.

Loading
Loading