Skip to content
This repository was archived by the owner on Apr 11, 2026. It is now read-only.

Latest commit

 

History

History
129 lines (83 loc) · 2.05 KB

File metadata and controls

129 lines (83 loc) · 2.05 KB
title Local Development
description Guide for developing Openinary locally

Prerequisites

- **Node.js**: Version 18.0.0 or higher

```bash
node --version  # Should be >= 18.0.0
```
- **pnpm**: Version 9.0.0 or higher

```bash
# Install pnpm if not already installed
npm install -g pnpm@9.0.0

# Verify installation
pnpm --version
```
- **FFmpeg**: Required for video processing

<CodeGroup>

```bash macOS
brew install ffmpeg
```

```bash Windows
# Download a Windows build from:
# https://ffmpeg.org/download.html#build-windows
```

```bash Linux (Ubuntu/Debian)
sudo apt-get install ffmpeg
```

```bash Linux (Fedora)
sudo dnf install ffmpeg
```

```bash Verify installation
ffmpeg -version
```

</CodeGroup>
- **Cloud Storage Credentials**: Only required if using cloud storage mode (AWS S3 or Cloudflare R2)
  - For local development, files can be placed in `apps/api/public/`
  - See [Storage configuration](/configuration) for cloud setup

Clone the repository

Clone Openinary and move into the project directory:

git clone https://github.com/openinary/openinary.git
cd openinary

Installation

Install all dependencies:

pnpm install

Start Everything

Start both the API and frontend:

pnpm dev

This will start both the API and frontend simultaneously.

Start Separately

Run the API and frontend separately:

pnpm dev:api
pnpm dev:web

Using Docker

You can also run Openinary using Docker Compose. This is useful if you want to avoid installing dependencies locally or need isolated environments.

Start Full Stack

Start both the API and frontend with Docker:

docker compose --profile full up --build

Start API Only

Start only the API service:

docker compose --profile api up --build