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
Node.js 20+
Node.js 20+
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 10+ (or pnpm/yarn)
npm 10+ (or pnpm/yarn)
npm comes with Node.js:Or use pnpm (faster):Or use yarn:
Git 2.30+
Git 2.30+
Verify installation:Install if needed:
- macOS:
brew install git - Windows: Download from git-scm.com
- Linux:
sudo apt install gitorsudo yum install git
kubectl 1.25+ (for real cluster testing)
kubectl 1.25+ (for real cluster testing)
Version: 1.25.0 or laterInstall:Verify:Note: Not required for demo mode development
Docker (optional - for local Kubernetes cluster)
Docker (optional - for local Kubernetes cluster)
For running local test cluster:Install Docker Desktop:
- macOS/Windows: docker.com/products/docker-desktop
- Linux: Follow docs.docker.com
- Open Docker Desktop
- Settings → Kubernetes
- Check “Enable Kubernetes”
- Click “Apply & Restart”
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
- npm
- pnpm
- yarn
- Next.js 15 and React 19
- Material-UI v7
- Kubernetes client node
- TanStack Query
- Vitest and Playwright
- …and 50+ other packages
3. Environment Configuration
Create environment file:.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:orphelix.db will be created in the app/ directory.
Schema location: app/lib/db/schema.sql
Inspect database:
Development Workflow
Start Development Server
- npm
- Turbopack (faster)
- Hot Module Replacement (HMR)
- Fast Refresh (instant updates)
- Source maps
- Detailed error pages
- React Query DevTools
- Turbopack compilation (optional)
Demo Mode (No Cluster Required)
Default mode - no kubeconfig needed:- Start dev server:
npm run dev - Open http://localhost:3000
- Click “Switch to Demo Mode” (or it’s already selected)
- Explore with mock data:
- 15 deployments
- 42 pods
- 3 nodes
- 25 ConfigMaps/Secrets
- 150+ events
- UI development
- Component testing
- Learning the codebase
- Presentations
Real Cluster Mode
Requires kubeconfig:-
Configure kubectl:
-
Verify access:
-
Start Orphelix:
- Switch to Real mode in UI
- Select cluster context
- Select namespace
- AWS EKS
- Google GKE
- Azure AKS
- Minikube
- Kind
- Docker Desktop Kubernetes
- Any Kubernetes 1.25+
Project Structure Quick Tour
Running Tests
Unit Tests (Vitest)
- Run all tests
- Watch mode
- Coverage
- Specific test
E2E Tests (Playwright)
- Run all E2E tests
- Interactive mode
- Specific browser
- Headed mode
Type Checking
tsc --noEmit to check TypeScript types without compilation.
Linting
- Check
- Fix
Format Code
Making Changes
1. Create Feature Branch
feature/- New featuresfix/- Bug fixesdocs/- Documentationrefactor/- Code refactoringtest/- Test improvements
2. Make Changes
Example: Add new resource view-
Create API route:
-
Create custom hook:
-
Create page component:
-
Add tests:
3. Test Changes
4. Commit Changes
feat:- New featurefix:- Bug fixdocs:- Documentationstyle:- Code style (formatting, etc.)refactor:- Code refactoringtest:- Testschore:- Build, dependencies, etc.
5. Push and Create PR
Common Development Tasks
Add New Dependency
Add New API Route
-
Create route file:
-
Implement handler:
-
Add tests:
Add New Component
-
Create component file:
-
Implement component:
-
Export from index (if creating component library):
Add Demo Mode Data
Edit mock data file:Debug Application
VS Code launch.json:- Open chrome://inspect
- Click “Open dedicated DevTools for Node”
- Start dev server with
--inspect
Troubleshooting
Port 3000 Already in Use
Node Modules Issues
TypeScript Errors
Database Locked
kubectl Not Working
Build Fails
IDE Setup
VS Code
Recommended extensions:WebStorm / IntelliJ
- Open project
- Enable TypeScript support
- Set Node.js interpreter (v20+)
- Enable ESLint
- Enable Prettier
Next Steps
Architecture
Understand system design
Project Structure
Learn code organization
Testing Guide
Write and run tests
Contributing
Contribution guidelines
Getting Help
- Documentation: docs.orphelix.dev
- GitHub Issues: github.com/corapoid/orphelix/issues
- Discussions: github.com/corapoid/orphelix/discussions
Join our community! We’re here to help you get started and answer any questions.