Skip to content

airweave-ai/oauth2-whitelabel-demo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Airweave Demo App

A simple HTML/CSS/JS demo showing how to integrate Slack using Airweave's white label OAuth2 flow.

Setup

If the Airweave server is not already running:

  1. Clone the Airweave repository:
git clone https://github.com/airweave-ai/airweave.git
cd airweave
  1. Start the Airweave backend:
chmod +x start.sh
./start.sh

Main Setup Steps:

  1. Create the white label integration. This will create a white label integration for Slack and put the white label id in the public/app.js file. Typically you would do this in the Airweave UI.
chmod +x bin/create-white-label.sh
./bin/create-white-label.sh
  1. Serve the demo app (using any static file server, e.g., Python's built-in server):
cd public
python3 -m http.server 3000
  1. Open http://localhost:3000 in your browser

Files

  • public/index.html - Main page with connect button
  • public/callback.html - OAuth callback page
  • public/styles.css - Styling
  • public/app.js - Main JavaScript for OAuth flow
  • public/callback.js - Callback handling
  • bin/create-white-label.sh - Script to create white label integration

About

This project shows how you can set up Airweave's white labeling feature for your user's data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published