Skip to content

Installation

Requirements

  • Node.js ≥ 22
  • pnpm
  • Supabase project (local or hosted)

Setup

bash
git clone <repository-url>
cd neverline
pnpm install

Environment Variables

Copy the example environment variables template and configure the required parameters:

bash
cp services/api/.env.example services/api/.env

Required variables:

VariableDescription
SUPABASE_URLYour Supabase project URL
SUPABASE_SERVICE_ROLE_KEYService role key (server-side only)
SUPABASE_ANON_KEYAnonymous key (client-side)
PII_ENCRYPTION_KEY32-byte hex string for PII encryption and deep-link signing
CLIENT_URLCustomer PWA base URL (e.g. https://app.neverline.fi)

Database Setup

Run migrations against your Supabase project:

bash
supabase db push

Or apply migrations manually from supabase/migrations/.

Running Locally

bash
# Start API server (port 3001)
pnpm --filter @neverline/api dev

# Start dashboard (port 5174)
pnpm --filter @neverline/dashboard dev

# Start customer PWA (port 5173)
pnpm --filter @neverline/client dev

# Start staff mobile app (Expo Metro Bundler)
pnpm --filter @neverline/mobile-access start