feat: new documentation

This commit is contained in:
swve
2026-03-14 12:39:57 +01:00
parent c6ffd76538
commit c0d8d90ec4
168 changed files with 11830 additions and 11996 deletions

View File

@@ -0,0 +1,6 @@
{
"index": "Overview",
"architecture": "Architecture",
"contributing": "Contributing",
"api": "API Reference"
}

View File

@@ -0,0 +1,5 @@
{
"index": "Overview",
"authentication": "Authentication",
"endpoints": "Endpoints"
}

View File

@@ -0,0 +1,47 @@
import { Callout } from 'nextra/components'
# API Authentication
The LearnHouse API supports **JWT cookies** for browser sessions and **API tokens** for programmatic access.
## JWT Authentication
Login to receive a JWT access token (HS256, expires in 8 hours):
```bash
curl -X POST http://localhost:1338/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com", "password": "your-password"}'
```
Then authenticate requests via the `Authorization` header:
```bash
curl http://localhost:1338/api/v1/users/me \
-H "Authorization: Bearer <access_token>"
```
The token is also set as an `access_token_cookie` for browser-based sessions. Use `/api/v1/auth/refresh` to renew expired tokens within the 30-day refresh window.
## API Tokens
<Callout type="info">
API tokens are available on the **Pro plan**. Create and manage them in organization settings.
</Callout>
For programmatic access, use API tokens (prefixed with `lh_`):
```bash
curl http://localhost:1338/api/v1/users/me \
-H "Authorization: Bearer lh_your_api_token_here"
```
## Auth Endpoints
| Method | Endpoint | Description |
| --- | --- | --- |
| `POST` | `/api/v1/auth/login` | Login and receive a JWT |
| `GET` | `/api/v1/auth/refresh` | Refresh an expired token |
| `DELETE` | `/api/v1/auth/logout` | Invalidate the session |
| `POST` | `/api/v1/auth/oauth` | Google OAuth login |
| `POST` | `/api/v1/auth/verify-email` | Verify email address |

View File

@@ -0,0 +1,186 @@
import { Callout } from 'nextra/components'
# API Endpoints
This page provides an overview of all API endpoint groups available in LearnHouse. All endpoints are prefixed with `/api/v1/`. For the full interactive reference with request and response schemas, visit the Swagger UI at `/docs` on a development instance.
<Callout type="info">
The complete, interactive API documentation is available at [http://localhost:1338/docs](http://localhost:1338/docs) in development mode only. It includes every endpoint, parameter, and response schema.
</Callout>
## Core Endpoint Groups
### Authentication
Login, logout, token refresh, OAuth, and email verification.
```bash
# Login
curl -X POST http://localhost:1338/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com", "password": "password"}'
```
See [Authentication](/developers/api/authentication) for full details.
### Users
User CRUD, profile management, session info, and password reset.
```bash
# Get current user profile
curl http://localhost:1338/api/v1/users/me \
-H "Authorization: Bearer <token>"
```
### Organizations
Organization CRUD, user management, roles, invites, configuration, SEO settings, branding, API tokens, and custom domains.
```bash
# Get organization details
curl http://localhost:1338/api/v1/orgs/{org_slug} \
-H "Authorization: Bearer <token>"
```
### Courses
Course CRUD, cloning, export/import, and contributor management.
```bash
# List courses in an organization
curl http://localhost:1338/api/v1/courses \
-H "Authorization: Bearer <token>"
# Create a new course
curl -X POST http://localhost:1338/api/v1/courses \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"name": "Introduction to Python",
"description": "A beginner-friendly Python course"
}'
```
### Chapters
Chapter CRUD and ordering within courses.
```bash
# List chapters in a course
curl http://localhost:1338/api/v1/chapters \
-H "Authorization: Bearer <token>"
```
### Activities
Activity CRUD -- individual content units within chapters (pages, videos, documents).
```bash
# Get activities
curl http://localhost:1338/api/v1/activities \
-H "Authorization: Bearer <token>"
```
### Blocks
Block CRUD -- content blocks within activities.
### Collections
Collections group related courses together for organization and discovery.
```bash
# List collections
curl http://localhost:1338/api/v1/collections \
-H "Authorization: Bearer <token>"
```
### Assignments
Assignment CRUD for course assessments.
### AI
AI-powered features including an assistant, magic blocks, course planning, and RAG (Retrieval-Augmented Generation).
```bash
# AI endpoints vary by configuration
curl http://localhost:1338/api/v1/ai/chat \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"message": "Explain this concept"}'
```
### Analytics
Course analytics and usage tracking.
### Search
Full-text search across courses and content.
### Code Execution
Code execution endpoints powered by Judge0.
### Learning Trails
Learning trail management and progress tracking.
### Video Streaming
Video streaming and delivery endpoints.
## Community Features (Standard Plan)
### Communities
Community forums for organizations.
### Discussions
Discussion threads within communities.
### User Groups
User group management for organizing learners.
## Pro Features (Pro Plan)
### Certifications
Certificate generation and management for course completion.
### Boards
Collaborative whiteboards for interactive learning.
### Playgrounds
AI-generated interactive elements for hands-on learning.
### Podcasts
Podcast and episode CRUD for audio content delivery.
## Infrastructure Endpoints
| Method | Endpoint | Description |
| --- | --- | --- |
| `GET` | `/api/v1/health` | Health check |
| `GET` | `/api/v1/instance/info` | Public instance information |
| `GET` | `/api/v1/content/...` | Content delivery (filesystem or S3) |
| `GET` | `/openapi.json` | OpenAPI spec (dev mode only) |
## Common Patterns
- All endpoints are prefixed with `/api/v1/`.
- Resources follow standard REST conventions: `GET` to list or retrieve, `POST` to create, `PUT` to update, `DELETE` to remove.
- Authenticated endpoints require either the `Authorization: Bearer <token>` header or the `access_token_cookie` cookie.
- Programmatic access uses API tokens with the `lh_` prefix (Pro plan).
- Responses are returned as JSON.
<Callout type="info">
Endpoint paths and request/response schemas may evolve between versions. Always refer to the interactive `/docs` endpoint on a development instance for the most up-to-date reference.
</Callout>

View File

@@ -0,0 +1,50 @@
import { Callout } from 'nextra/components'
# API Reference
The LearnHouse API is a RESTful service built with **FastAPI**. It powers all platform operations, from user authentication to course management and AI features. All endpoints are prefixed with `/api/v1/`.
## Interactive Documentation
<Callout type="warning">
The interactive API documentation is only available when running in **development mode**. Production instances do not expose Swagger UI or the OpenAPI spec.
</Callout>
When running the development environment, auto-generated interactive API documentation is available:
- **Swagger UI** -- Available at `/docs` (e.g., [http://localhost:1338/docs](http://localhost:1338/docs))
These interfaces let you explore all available endpoints, view request and response schemas, and test API calls directly from your browser.
## Base URL
In local development, the API is available at:
```
http://localhost:1338/api/v1/
```
In production, the API is served behind a reverse proxy and is accessible at the root domain under `/api/v1/`.
## Response Format
All API responses are returned as JSON. Successful responses typically include the requested data directly, while error responses follow this structure:
```json
{
"detail": "Description of the error"
}
```
## Sections
- **[Authentication](/developers/api/authentication)** -- How to obtain and use authentication tokens.
- **[Endpoints](/developers/api/endpoints)** -- Overview of the key API endpoint groups.
## OpenAPI Specification
Since the API is built with FastAPI, a machine-readable OpenAPI specification is available at `/openapi.json` on development instances. This can be used to generate client libraries or import into API testing tools.
<Callout type="info">
The OpenAPI spec at `/openapi.json` is only served in development mode.
</Callout>

View File

@@ -0,0 +1,6 @@
{
"index": "Overview",
"frontend": "Frontend",
"backend": "Backend",
"services": "Services"
}

View File

@@ -0,0 +1,96 @@
import { Callout } from 'nextra/components'
# Backend Architecture
The LearnHouse backend is a **FastAPI** application written in Python, located at `apps/api` in the project. It serves as the central API layer that handles all business logic and data management.
## Technology Stack
- **FastAPI** >= 0.135.1 -- High-performance Python web framework
- **Python 3.14.3**
- **SQLModel** >= 0.0.37 -- ORM for database interactions (built on SQLAlchemy and Pydantic)
- **Alembic** -- Database migration management
- **PostgreSQL 16** with **pgvector** extension -- Primary relational database
- **Redis** >= 7.2.1 -- Caching layer and session storage
- **Uvicorn** 0.41.0 -- ASGI server
- **uv** -- Python package manager
## Key Dependencies
- **psycopg2-binary** -- PostgreSQL adapter
- **pyjwt[crypto]** -- JWT token handling
- **pwdlib[argon2]** -- Password hashing with Argon2
- **google-genai** >= 1.65.0 -- Gemini AI integration
- **llama-index-core + pgvector** -- RAG and vector embeddings
- **stripe** -- Payment processing
- **workos** -- Enterprise SSO
- **boto3** -- S3-compatible storage
- **resend** -- Transactional email
- **sentry-sdk** -- Error tracking and monitoring
## Configuration
The backend uses a dual configuration system:
- **YAML config** at `config/config.yaml` for structured settings
- **Environment variables** which override YAML values when set
The API prefix for all endpoints is `/api/v1/`.
## Responsibilities
The backend handles all core platform operations:
- **Authentication and authorization** -- JWT-based token authentication with role-based access control
- **Course management** -- CRUD operations for organizations, courses, chapters, and activities
- **User management** -- Registration, profiles, and permissions
- **File storage and uploads** -- Handling media uploads with support for local filesystem and S3-compatible storage (via boto3)
- **AI features** -- Integration with Google Gemini and LlamaIndex for learning assistance and RAG
- **Search** -- Content indexing and search across courses and activities
- **Payments** -- Stripe integration for course monetization
- **Email** -- Transactional email via Resend
## Database Layer
SQLModel is used as the ORM, connecting to a PostgreSQL 16 database with the pgvector extension for AI embeddings. Database models define the schema for all entities: organizations, users, courses, chapters, activities, collections, and more. Migrations are managed with **Alembic** to keep the schema in sync across environments.
## Caching
Redis is used for:
- **Response caching** -- Frequently accessed data is cached to reduce database load.
- **Session data** -- Temporary session information is stored in Redis for fast retrieval.
## API Documentation
FastAPI automatically generates interactive API documentation, but it is only available when running in development mode.
<Callout type="info">
Swagger UI (`/docs/`) and ReDoc (`/redoc/`) are only accessible when `LEARNHOUSE_DEVELOPMENT_MODE=True` is set. They are disabled in production.
</Callout>
## Directory Structure
```
apps/api/
├── src/
│ ├── routers/ # API route definitions
│ ├── db/ # SQLModel table definitions
│ ├── services/ # Business logic
│ ├── security/ # Authentication and authorization
│ └── core/ # Configuration and dependencies
├── migrations/ # Alembic database migrations
├── ee/ # Enterprise Edition features
└── config/ # YAML configuration files
```
## Development
The backend runs on **port 1338** by default during local development (configurable via `LEARNHOUSE_PORT`). In production Docker deployments, it runs on port 9000. Install dependencies and run the server:
```bash
uv sync # install dependencies
uv run uvicorn # start the dev server
```
When using the LearnHouse CLI (`learnhouse dev`), the backend starts automatically with hot reload enabled.

View File

@@ -0,0 +1,69 @@
# Frontend Architecture
The LearnHouse frontend is a **Next.js 16** application located at `apps/web` in the project. It serves as the primary user interface for learners, instructors, and administrators.
## Technology Stack
- **Next.js 16.1.6** with the App Router (standalone output)
- **React 19.2.4** with Server Components
- **TypeScript 5.9.3**
- **TailwindCSS v4** for styling
- **Bun** as the package manager
- **Turbopack** for development builds (`next dev --turbopack`)
- **SWR** for client-side data fetching
## Key Dependencies
- **@tiptap/core** -- Block-based rich text editor
- **@radix-ui** -- Accessible, unstyled UI primitives
- **@hocuspocus/provider** -- Real-time collaboration client
- **yjs** -- CRDT library for conflict-free collaborative editing
- **@codemirror** -- Code editor component
- **recharts** -- Charting and data visualization
- **formik / yup** -- Form handling and validation
- **motion** -- Animation library
- **i18next** -- Internationalization
- **wavesurfer.js** -- Audio/podcast player
- **jspdf / html2canvas** -- Certificate generation
- **unsplash-js** -- Unsplash image integration
## App Router
The frontend uses the Next.js App Router, which enables:
- **Server Components by default** -- Pages and layouts render on the server, reducing client-side JavaScript and improving initial load times.
- **Client Components where needed** -- Interactive elements opt into client-side rendering with the `"use client"` directive.
- **Streaming and Suspense** -- Content is progressively streamed to the browser as it becomes ready.
- **Route Groups and Layouts** -- Shared layouts and nested routing keep the codebase organized.
## Authentication
Authentication is handled via **JWT tokens** issued by the FastAPI backend. On login, the backend sets an `access_token_cookie` (HS256, 8-hour expiry) that the frontend attaches to API requests. Protected routes check for a valid session before rendering.
## Communication with the Backend
The frontend communicates with the FastAPI backend over HTTP. API calls are made from both:
- **Server Components** -- Data is fetched at request time on the server, which keeps sensitive tokens off the client.
- **Client Components** -- Interactive features make API calls directly from the browser using **SWR** for caching and revalidation.
## Directory Structure
```
apps/web/
├── app/ # App Router pages and layouts
├── components/ # Reusable UI components
├── services/ # API client and service functions
├── store/ # Client-side state management
└── public/ # Static assets
```
## Development
The frontend runs on **port 3000** during local development. Start the dev server with Turbopack enabled:
```bash
bun dev # runs next dev --turbopack
```
When using the LearnHouse CLI (`learnhouse dev`), the frontend starts automatically with hot reload enabled.

View File

@@ -0,0 +1,36 @@
import { Callout } from 'nextra/components'
import ArchitectureDiagram from '../../../components/ArchitectureDiagram/ArchitectureDiagram'
# Architecture Overview
LearnHouse is a multi-directory project with multiple applications that work together to deliver the full platform experience. The system follows a clear separation of concerns between the frontend, backend, and supporting services.
## Project Structure
```
learnhouse/
├── apps/
│ ├── web/ # Next.js frontend
│ ├── api/ # FastAPI backend
│ ├── collab/ # Hocuspocus collaboration server
│ └── cli/ # LearnHouse CLI
└── community-edition/ # Docker Compose deployment config
```
## How It All Fits Together
The platform consists of four applications backed by two core services:
- **Web (Next.js)** -- The user-facing frontend that communicates with the backend API and the collaboration server.
- **API (FastAPI)** -- The backend that handles authentication, course management, storage, uploads, AI features, and all business logic.
- **Collab (Hocuspocus)** -- A WebSocket server that powers real-time collaborative editing with JWT authentication, Redis persistence, and per-board user limits.
- **CLI (Commander)** -- A command-line tool used for local development and management tasks.
<ArchitectureDiagram />
## Backing Services
LearnHouse relies on two primary backing services:
- **PostgreSQL 16** -- The primary relational database for storing all application data including users, courses, organizations, and activity records. Uses the pgvector extension for AI embedding storage.
- **Redis 7.2** -- Used for caching, session management, collaboration state persistence, and message brokering between services.

View File

@@ -0,0 +1,86 @@
# Supporting Services
LearnHouse relies on several supporting services that run alongside the main applications. In both development and production, these services are managed via Docker (configuration in the `community-edition/` directory).
## PostgreSQL
PostgreSQL 16 (Alpine) is the primary database for LearnHouse. It stores all persistent application data including:
- Organizations and their configurations
- User accounts and authentication records
- Courses, chapters, and activities
- Collections, trails, and progress tracking
- AI vector embeddings (via the pgvector extension)
The backend connects to PostgreSQL through SQLModel. In development, the LearnHouse CLI automatically starts a PostgreSQL container.
**Default port:** `5432`
## Redis
Redis 7.2.3 (Alpine) serves as the caching, session management, and collaboration persistence layer:
- **Caching** -- Reduces database load by storing frequently accessed data in memory.
- **Session storage** -- Manages user session data for fast access.
- **Collaboration state** -- Stores Yjs document state from the Collab server with a 1-hour TTL before it is persisted to PostgreSQL.
- **Pub/Sub** -- Enables communication between services when needed.
**Default port:** `6379`
## Hocuspocus (Collaboration Server)
The Hocuspocus server, located at `apps/collab`, provides real-time collaborative editing capabilities. It is a Node.js + TypeScript application (run via tsx) built on [Hocuspocus](https://hocuspocus.dev/) ^3.0.0, which uses the Yjs CRDT library under the hood. It connects to Redis via ioredis ^5.9.3.
**Default port:** `4000` (configurable via `COLLAB_PORT` env var)
### Authentication
The Collab server performs JWT verification using the same secret as the API backend. On connection, it verifies board membership by making a request to the API.
### Persistence
Document state follows a two-tier persistence strategy:
1. **Redis** -- Yjs state is first stored in Redis with a 1-hour TTL for fast access.
2. **PostgreSQL** -- State is persisted to the database via the API with a 5-second debounce to avoid excessive writes.
### Rate Limiting and Capacity
- **Max 10 concurrent users** per board
- **Rate limiting** of 30 connections per IP per minute
### Key Features
- **Real-time document synchronization** -- Multiple users can edit the same activity simultaneously.
- **Conflict resolution** -- Yjs CRDTs handle concurrent edits without conflicts.
- **Durable persistence** -- Document state survives server restarts through Redis and PostgreSQL.
The frontend connects to Hocuspocus directly over WebSocket using the `@hocuspocus/provider` client for low-latency collaborative editing.
## nginx (Reverse Proxy)
In production deployments, nginx (Alpine) acts as the reverse proxy that routes incoming traffic to the appropriate service:
- Frontend requests go to the Next.js application
- API requests are forwarded to the FastAPI backend
- WebSocket connections for collaboration are routed to the Hocuspocus server
nginx also handles TLS termination and static asset serving in production environments.
## Service Communication
All services communicate over a shared Docker network. The typical request flow is:
```
Client
└── nginx (reverse proxy)
├── web (Next.js frontend, port 3000)
├── api (FastAPI backend, port 9000)
│ ├── PostgreSQL (port 5432)
│ └── Redis (port 6379)
└── collab (Hocuspocus, port 4000)
├── Redis (port 6379)
└── api (port 9000, for persistence & auth)
```
The frontend makes HTTP requests to the backend API. The collaboration server authenticates connections via JWT (shared secret with the API), verifies board membership through the API, and persists document state to both Redis and PostgreSQL (via the API). PostgreSQL is accessed directly only by the backend.

View File

@@ -0,0 +1,5 @@
{
"index": "Overview",
"dev-environment": "Dev Environment",
"guidelines": "Guidelines"
}

View File

@@ -0,0 +1,62 @@
import { Callout } from 'nextra/components'
# Development Environment Setup
The LearnHouse CLI provides a streamlined way to set up and run the entire development environment with a single command.
## Prerequisites
Make sure you have the following installed before proceeding:
- **Docker** (with Docker Compose v2)
- **Node.js 18+**
<Callout type="warning">
Make sure Docker has at least **4GB of RAM** allocated. You can check and adjust this in Docker Desktop under Settings &gt; Resources.
</Callout>
<Callout type="info">
You do **not** need to install Python, uv, Bun, or any other tooling manually. The `npx learnhouse dev` command handles all dependency installation automatically.
</Callout>
## Setup Steps
### 1. Clone the Repository and Start Development
```bash
git clone https://github.com/learnhouse/learnhouse && cd learnhouse && npx learnhouse dev
```
That single command handles everything:
- **Starts backing services** -- PostgreSQL and Redis are launched via Docker Compose.
- **Installs dependencies** -- Python dependencies are installed via `uv` and JavaScript dependencies via `bun`, all automatically.
- **Starts the API** -- The FastAPI backend starts on port 1338 with hot reload.
- **Starts the frontend** -- The Next.js development server starts with `--turbopack` and hot reload.
- **Starts the collaboration server** -- The Hocuspocus collaboration server starts via `tsx watch`.
All services are coordinated automatically so you do not need to manage them individually.
## Accessing the Application
Once `npx learnhouse dev` is running, you can access:
| Service | URL |
| --- | --- |
| Frontend | [http://localhost:3000](http://localhost:3000) |
| API | [http://localhost:1338](http://localhost:1338) |
| API Documentation (Swagger) | [http://localhost:1338/docs](http://localhost:1338/docs) |
<Callout type="info">
The Swagger UI at `/docs` is only available in development mode. Production instances do not expose the interactive API documentation.
</Callout>
## Stopping the Environment
Press `Ctrl+C` in the terminal where `npx learnhouse dev` is running to stop all services.
## Troubleshooting
- **Port conflicts** -- Make sure ports 3000 and 1338 are not in use by other applications.
- **Docker not running** -- Ensure the Docker daemon is started before running `npx learnhouse dev`.
- **Dependency issues** -- The CLI installs all dependencies automatically. If you encounter issues, try deleting `node_modules` and `.venv` directories and re-running `npx learnhouse dev`.

View File

@@ -0,0 +1,86 @@
# Contribution Guidelines
This page outlines the workflow and standards for contributing to LearnHouse.
## Workflow
### 1. Fork and Clone
Fork the [LearnHouse repository](https://github.com/learnhouse/learnhouse) on GitHub, then clone your fork:
```bash
git clone https://github.com/YOUR_USERNAME/learnhouse.git
cd learnhouse
```
### 2. Create a Feature Branch
Always create a new branch for your changes. Use a descriptive branch name:
```bash
git checkout -b feature/your-feature-name
```
Branch naming conventions:
- `feature/` -- New features or enhancements
- `fix/` -- Bug fixes
- `docs/` -- Documentation changes
- `refactor/` -- Code refactoring without behavior changes
### 3. Make Your Changes
Develop your changes locally using the [development environment](/developers/contributing/dev-environment). Keep commits focused and atomic.
When adding or updating dependencies:
- **Frontend** -- Use `bun` to manage JavaScript/TypeScript dependencies (e.g., `bun add <package>`).
- **Backend** -- Use `uv` to manage Python dependencies (e.g., `uv add <package>`).
### 4. Submit a Pull Request
Push your branch to your fork and open a pull request against the `main` branch of the LearnHouse repository:
```bash
git push origin feature/your-feature-name
```
In your pull request description:
- Explain **what** your change does and **why** it is needed.
- Reference any related [GitHub issues](https://github.com/learnhouse/learnhouse/issues).
- Include screenshots or recordings for UI changes.
## Code Style
### Frontend (TypeScript / React)
- Use **TypeScript** for all new code.
- Follow existing patterns in the codebase for component structure and naming.
- Use functional components with hooks.
- Format code consistently -- the project includes configuration for code formatters.
### Backend (Python)
- Follow **PEP 8** conventions.
- Use type hints for function parameters and return values.
- Write clear docstrings for public functions and classes.
- Keep functions focused and concise.
## Testing
- Test your changes locally before submitting a pull request.
- Verify that existing functionality is not broken by your changes.
- For new features, include tests where applicable.
## Review Process
After submitting a pull request:
1. A maintainer will review your code and may request changes.
2. Address any feedback by pushing additional commits to your branch.
3. Once approved, a maintainer will merge your pull request.
## Reporting Issues
If you find a bug or have a feature request, please [open an issue](https://github.com/learnhouse/learnhouse/issues/new) on GitHub. Include as much detail as possible: steps to reproduce, expected behavior, actual behavior, and any relevant logs or screenshots.

View File

@@ -0,0 +1,21 @@
# Contributing to LearnHouse
Thank you for your interest in contributing to LearnHouse! Whether you are fixing a bug, adding a feature, or improving documentation, your contributions are welcome.
## Getting Started
1. **[Set up your development environment](/developers/contributing/dev-environment)** -- Get a local instance of LearnHouse running using the LearnHouse CLI.
2. **[Review the contribution guidelines](/developers/contributing/guidelines)** -- Understand our workflow, code style, and expectations for pull requests.
## Finding Work
The best place to start is the [LearnHouse GitHub issues](https://github.com/learnhouse/learnhouse/issues) page. Look for issues labeled:
- **`help wanted`** -- Issues where community contributions are especially welcome.
- **`good first issue`** -- Smaller, well-scoped tasks ideal for first-time contributors.
If you have an idea for a new feature, open an issue first to discuss it with the maintainers before starting work.
## Questions
If you have questions about contributing, feel free to open a discussion on the [GitHub repository](https://github.com/learnhouse/learnhouse) or reach out to the maintainers through the issue tracker.

View File

@@ -0,0 +1,30 @@
# Developers
Welcome to the LearnHouse developer documentation. This section covers everything you need to understand, build, and contribute to the LearnHouse platform.
## Project Structure
LearnHouse is organized as a monorepo containing four main applications:
| App | Technology | Description |
| --- | --- | --- |
| **web** | Next.js (React) | Frontend web application |
| **api** | FastAPI (Python) | Backend REST API |
| **collab** | Hocuspocus | Real-time collaboration WebSocket server |
| **cli** | Commander (Node.js) | Command-line interface for development and management |
All four apps live under the `apps/` directory in the [LearnHouse repository](https://github.com/learnhouse/learnhouse).
## Sections
### [Architecture](/developers/architecture)
Learn how the different parts of LearnHouse fit together, from the frontend and backend to the supporting services that power the platform.
### [Contributing](/developers/contributing)
Get your local development environment running, understand our contribution workflow, and review code style guidelines.
### [API Reference](/developers/api)
Explore the RESTful API that drives LearnHouse. Covers authentication, key endpoints, and how to interact with the platform programmatically.