Developer Onboarding
Prerequisites and setup guide for team members joining the Handelsregister app development.
Required Tools
Node.js & npm
Required for: Frontend development, workspace management
Installation:
- Download from: https://nodejs.org/ (LTS version recommended)
- Verify:
node --versionandnpm --version
Homebrew (macOS only)
Required for: Installing Supabase CLI
Installation:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Verify: brew --version
Supabase CLI
Required for: Local database development, migrations, type generation
Installation:
brew install supabase/tap/supabaseVerify: supabase --version
Note: npm global install is not supported and will fail.
Docker Desktop
Required for: Local database containers
Installation:
- Download from: https://docs.docker.com/desktop/
- Install and start Docker Desktop
- Verify:
docker --version
Why needed: Local development runs PostgreSQL in Docker containers.
Developer Setup
1. Clone Repository
git clone <repository-url>
cd handelsregister-app2. Install Dependencies
npm installWhy needed: Downloads all required packages for running database scripts and development tools.
3. Authenticate with Supabase
supabase loginOpens browser for authentication with your Supabase account.
4. Connect to Project
supabase link --project-ref YOUR_PROJECT_IDGet project ID from team lead or find it in:
- Supabase Dashboard URL:
https://supabase.com/dashboard/project/YOUR_PROJECT_ID - Project Settings → Reference ID
5. Start Local Development
supabase db startExpected output:
Started supabase local development setup.
API URL: http://127.0.0.1:54321
Studio URL: http://127.0.0.1:54323
DB URL: postgresql://postgres:postgres@127.0.0.1:54322/postgres6. Initialize Database with Sample Data
npm run db:resetWhy needed: Populates the local database with sample data and applies all migrations for a complete development environment.
Test: Open http://127.0.0.1:54323 to see Supabase Studio with project schemas and sample data.
Database Reset
If you need to reset your local database:
supabase db reset
npm run db:reset