Overview
This example app shows how to fetch integrations from your Databite server and use@databite/connect to create connections from the frontend.
Repository
The example web app is available in our open-source repository:View on GitHub
Explore the complete implementation with source code, tests, and deployment
configuration
Features Demonstrated
Connector Integration
- Use
@databite/connectmodal for authentication - Type-safe integration with the Databite SDK
Connection Management
- Connection UI: Pre-built React components for connection management
- Status Tracking: Real-time connection status and health monitoring
- Error Handling: Robust error handling and user feedback
Data Synchronization
- Optional scheduled syncs via
@databite/engine
Flow Execution
- The modal guides users through authentication
Project Structure
Getting Started
Prerequisites
- Node.js >= 16.0.0
- npm, yarn, pnpm, or bun
Installation
Development
Start the development server:Key Implementation Examples
Basic Connector Setup
Configuration
Environment Variables
Create a.env.local file in the root directory:
Deployment
Vercel (Recommended)
The easiest way to deploy your Next.js app is to use the Vercel Platform:- Push your code to GitHub
- Connect your repository to Vercel
- Set your environment variables in the Vercel dashboard
- Deploy!
Other Platforms
This application can be deployed to any platform that supports Next.js:- Netlify: Use the Next.js build command
- Railway: Deploy directly from GitHub
- Docker: Use the included Dockerfile
- AWS/GCP/Azure: Use their respective deployment services
Contributing
We welcome contributions to the example web app! Please see our Contributing Guide for details.Related Resources
- Databite SDK Documentation - Server documentation
- Connectors Documentation - Pre-built connectors
- Engine Documentation - Data synchronization and execution engine
- GitHub Repository - Source code and issues