Get started in 5 minutes
This guide will walk you through installing oForum, setting up your database, and starting your forum.Before you begin, make sure you have PostgreSQL installed and running on your system.
Install oForum
Run the installation script to download the latest version:This installs the
Verify the installation:Expected output:
oforum binary to /usr/local/bin and makes it available system-wide.What does the install script do?
What does the install script do?
The script:
- Detects your OS and architecture (macOS/Linux, amd64/arm64)
- Downloads the latest pre-built binary from GitHub releases
- Installs it to
/usr/local/bin/oforum - Optionally installs the man page to
/usr/local/share/man/man1
Initialize configuration
Run the interactive setup to generate your You’ll be prompted for:
.env file:- Database URL - Your PostgreSQL connection string
- Port - The port to run the server on (default: 8080)
Run database migrations
Apply the database schema:Expected output:
Migrations also run automatically when you start the server, so this step is optional. However, running migrations separately is useful for debugging or when deploying.
Start the server
Launch oForum:You’ll see:Open http://localhost:8080 in your browser. You should see the oForum homepage!
Seed demo data (optional)
Stop the server (Ctrl+C), then run:- 30 users with usernames like alice, bob, charlie, etc.
- 20 posts with realistic titles and content
- 200 comments across the posts
- Username:
alice - Password:
password123
Quick reference
Here are the essential oForum commands:Environment variables
oForum configuration is minimal:| Variable | Required | Default | Description |
|---|---|---|---|
DATABASE_URL | Yes | — | PostgreSQL connection string |
PORT | No | 8080 | Server port |
.env file:
What’s next?
Installation guide
Explore alternative installation methods and platform-specific instructions
Self-hosting
Learn how to deploy oForum to production environments
Environment variables
Understand all configuration options and environment variables
Admin guide
Manage users, roles, and forum settings
Troubleshooting
Error: DATABASE_URL is required
Error: DATABASE_URL is required
Make sure you’ve run
oforum init or set the DATABASE_URL environment variable:Error: connection refused to database
Error: connection refused to database
Ensure PostgreSQL is running:And that the database exists:
Port already in use
Port already in use
Change the port:Or find and stop the process using port 8080: