Quick Start
Get Fluxbase running in under 5 minutes using Docker.
Prerequisites
Section titled “Prerequisites”- Docker and Docker Compose installed
- 500MB disk space (plus space for your data)
1. Clone the Repository
Section titled “1. Clone the Repository”git clone https://github.com/fluxbase-eu/fluxbase.gitcd fluxbase/deploy2. Generate Secrets
Section titled “2. Generate Secrets”Run the secrets generator:
./generate-keys.shSelect option 1 (Docker Compose) when prompted. This creates a .env file with all required secrets.
3. Start Fluxbase
Section titled “3. Start Fluxbase”docker compose -f docker-compose.minimal.yaml up -dWait for the services to start (first run takes ~30 seconds for migrations). Check the logs:
docker logs -f fluxbaseYou should see:
Fluxbase starting...Database connectedMigrations appliedFluxbase is ready!4. Complete Setup
Section titled “4. Complete Setup”- Open http://localhost:8080/admin/setup
- Enter your Setup Token (the
FLUXBASE_SECURITY_SETUP_TOKENvalue from step 2) - Fill in your admin account details:
- Full Name - Your display name
- Email - Used for login
- Password - Minimum 12 characters
- Click Complete Setup
You’ll be automatically logged in and redirected to the dashboard.
Test the API
Section titled “Test the API”curl http://localhost:8080/health{"status": "healthy", "database": "connected"}Explore the Admin Dashboard
Section titled “Explore the Admin Dashboard”At http://localhost:8080/admin:
- Tables Browser - Create tables and manage data
- Authentication - View and manage users
- Storage - Upload and manage files
- Functions - Deploy edge functions
- Realtime - Monitor WebSocket connections
Troubleshooting
Section titled “Troubleshooting”Database connection errors after changing secrets:
docker compose -f docker-compose.minimal.yaml down -vdocker compose -f docker-compose.minimal.yaml up -dThe -v flag resets volumes so PostgreSQL reinitializes with the new password.
What’s Next?
Section titled “What’s Next?”Now that Fluxbase is running, here’s what to do next:
Build Your First API
Section titled “Build Your First API”- Create a table in the Tables Browser
- Generate a client key in Settings > Client Keys
- Query your data using the SDK or REST API
For a complete walkthrough, see the First API Tutorial.
Connect Your Application
Section titled “Connect Your Application”Install the TypeScript SDK:
npm install @fluxbase/sdkimport { createClient } from '@fluxbase/sdk'
const fluxbase = createClient('http://localhost:8080', 'your-client-key')
// Query dataconst { data, error } = await fluxbase.from('users').select('*')Set Up Authentication
Section titled “Set Up Authentication”Enable user signups in Settings > Authentication, then:
// Sign up a userconst { user, error } = await fluxbase.auth.signUp({ email: 'user@example.com', password: 'securepassword123'})See the Authentication Guide for OAuth, magic links, and more.
Secure Your Data
Section titled “Secure Your Data”Use Row-Level Security (RLS) to control access:
-- Users can only read their own dataCREATE POLICY "Users read own data"ON public.profiles FOR SELECTUSING (auth.uid() = user_id);See the Row-Level Security Guide.
Learn More
Section titled “Learn More”- First API Tutorial - Complete beginner walkthrough
- TypeScript SDK Guide - SDK reference and examples
- Authentication Guide - User authentication options
- Edge Functions - Deploy serverless functions
- Configuration Reference - All configuration options
- Docker Deployment - Production deployment guide