Skip to main content

Quickstart

Get FeatureSignals running locally in under 5 minutes using Docker Compose.

Prerequisites

1. Clone and Start

git clone https://github.com/dinesh-g1/featuresignals.git
cd featuresignals
docker compose up -d

This starts:

  • PostgreSQL on port 5432
  • API Server on port 8080
  • Dashboard on port 3000

Database migrations run automatically on startup.

2. Create Your Account

Open http://localhost:3000 and register a new account. This creates:

  • Your user account
  • A default organization
  • A Default Project with three environments: dev, staging, production

3. Create a Feature Flag

  1. Navigate to Flags in the sidebar
  2. Click Create Flag
  3. Enter:
    • Key: new-checkout
    • Name: New Checkout Flow
    • Type: boolean
  4. Click Create

4. Enable the Flag

  1. Open the flag detail page
  2. Switch to the dev environment tab
  3. Toggle the flag ON

5. Evaluate in Your App

Create an API Key

  1. Go to SettingsAPI Keys
  2. Create a server API key for the dev environment
  3. Copy the key (shown only once)

Install an SDK

npm install @featuresignals/node
import { FeatureSignalsClient } from '@featuresignals/node';

const client = new FeatureSignalsClient('YOUR_API_KEY', {
envKey: 'dev',
baseURL: 'http://localhost:8080',
});

await client.waitForReady();

const enabled = client.boolVariation('new-checkout', { key: 'user-123' }, false);
console.log('New checkout enabled:', enabled);

6. Toggle and Observe

Go back to the dashboard, toggle the flag OFF, and re-run your app. The value changes instantly (or within the polling interval).

Next Steps