Skip to main content

Overview

This guide walks you through setting up a complete Orphelix development environment, from initial repository clone to running tests and making your first contribution.
For production deployment, see Deployment Guide.

Prerequisites

Required Software

Version: 20.11.0 or laterInstall with nvm (recommended):
Alternative (direct install):
  • macOS: brew install node@20
  • Windows: Download from nodejs.org
  • Linux: Use package manager (apt, yum, etc.)
npm comes with Node.js:
Or use pnpm (faster):
Or use yarn:
Verify installation:
Install if needed:
  • macOS: brew install git
  • Windows: Download from git-scm.com
  • Linux: sudo apt install git or sudo yum install git
Version: 1.25.0 or laterInstall:
Verify:
Note: Not required for demo mode development
For running local test cluster:Install Docker Desktop:Enable Kubernetes in Docker Desktop:
  1. Open Docker Desktop
  2. Settings → Kubernetes
  3. Check “Enable Kubernetes”
  4. Click “Apply & Restart”
Alternative: Minikube or Kind:

Optional Tools

  • VS Code - Recommended IDE with extensions:
    • TypeScript and JavaScript
    • ESLint
    • Prettier
    • Tailwind CSS IntelliSense
    • YAML
  • GitHub CLI (gh) - Simplifies PR creation
  • PostgreSQL client (for database inspection)

Repository Setup

1. Clone Repository

2. Install Dependencies

This installs:
  • Next.js 15 and React 19
  • Material-UI v7
  • Kubernetes client node
  • TanStack Query
  • Vitest and Playwright
  • …and 50+ other packages
Expected output:

3. Environment Configuration

Create environment file:
Edit .env.local:
Demo Mode: You can skip GitHub and OpenAI configuration if you only want to work on demo mode features.

4. Database Setup

Initialize SQLite database:
The database file orphelix.db will be created in the app/ directory. Schema location: app/lib/db/schema.sql Inspect database:

Development Workflow

Start Development Server

Server starts at http://localhost:3000 Features enabled in dev mode:
  • Hot Module Replacement (HMR)
  • Fast Refresh (instant updates)
  • Source maps
  • Detailed error pages
  • React Query DevTools
  • Turbopack compilation (optional)
Console output:

Demo Mode (No Cluster Required)

Default mode - no kubeconfig needed:
  1. Start dev server: npm run dev
  2. Open http://localhost:3000
  3. Click “Switch to Demo Mode” (or it’s already selected)
  4. Explore with mock data:
    • 15 deployments
    • 42 pods
    • 3 nodes
    • 25 ConfigMaps/Secrets
    • 150+ events
Perfect for:
  • UI development
  • Component testing
  • Learning the codebase
  • Presentations

Real Cluster Mode

Requires kubeconfig:
  1. Configure kubectl:
  2. Verify access:
  3. Start Orphelix:
  4. Switch to Real mode in UI
  5. Select cluster context
  6. Select namespace
Supported clusters:
  • AWS EKS
  • Google GKE
  • Azure AKS
  • Minikube
  • Kind
  • Docker Desktop Kubernetes
  • Any Kubernetes 1.25+

Project Structure Quick Tour

Running Tests

Unit Tests (Vitest)

Expected output:

E2E Tests (Playwright)

Note: E2E tests start dev server automatically

Type Checking

This runs tsc --noEmit to check TypeScript types without compilation.

Linting

Format Code

Formats all files with Prettier.

Making Changes

1. Create Feature Branch

Branch naming:
  • feature/ - New features
  • fix/ - Bug fixes
  • docs/ - Documentation
  • refactor/ - Code refactoring
  • test/ - Test improvements

2. Make Changes

Example: Add new resource view
  1. Create API route:
  2. Create custom hook:
  3. Create page component:
  4. Add tests:

3. Test Changes

4. Commit Changes

Commit message format:
  • feat: - New feature
  • fix: - Bug fix
  • docs: - Documentation
  • style: - Code style (formatting, etc.)
  • refactor: - Code refactoring
  • test: - Tests
  • chore: - Build, dependencies, etc.

5. Push and Create PR

Common Development Tasks

Add New Dependency

Update package.json and commit:

Add New API Route

  1. Create route file:
  2. Implement handler:
  3. Add tests:

Add New Component

  1. Create component file:
  2. Implement component:
  3. Export from index (if creating component library):

Add Demo Mode Data

Edit mock data file:

Debug Application

VS Code launch.json:
Chrome DevTools:
  1. Open chrome://inspect
  2. Click “Open dedicated DevTools for Node”
  3. Start dev server with --inspect
React DevTools:

Troubleshooting

Port 3000 Already in Use

Node Modules Issues

TypeScript Errors

Database Locked

kubectl Not Working

Build Fails

IDE Setup

VS Code

Recommended extensions:
Settings:

WebStorm / IntelliJ

  1. Open project
  2. Enable TypeScript support
  3. Set Node.js interpreter (v20+)
  4. Enable ESLint
  5. Enable Prettier

Next Steps

Architecture

Understand system design

Project Structure

Learn code organization

Testing Guide

Write and run tests

Contributing

Contribution guidelines

Getting Help

Join our community! We’re here to help you get started and answer any questions.