Note: Orange Forum 2.0 is work in progress. Please see orangeforum-1.x.x branch for the latest stable version.
How to use
By default, sqlite is used, so it's easy to get started. Download the binary and migrate the database with:
Create an admin:
Finally, start the server:
There are three types of users in Orangeforum: admin, mod, and regular users. Admins are the most previleged and can do anything. Mods can edit posts and ban users.
- Go 1.8 (only for compiling)
- Postgres 9.5 (or use embedded sqlite3)
-addr <port>: Use
./orangeforum -addr 8086to listen on port 8086.
-dsn <data_source_name>: PostgreSQL and SQLite are supported. SQLite is the default driver.
To use postgres, run
./orangeforum -dbdriver postgres -dsn postgres://pguser:pgpasswd@localhost/orangeforum
To save an sqlite db at a different location, run
./orangeforum -dsn path/to/myforum.db.
-help: Show a list of all commands and options.
-migrate: Migrate the database. Run this once after updating the orangeforum binary (or when starting afresh).
-createadmin: Create an admin.
-createuser: Create a new user with no special privileges.
-changepasswd: Change password of a user.
-deletesessions: Drop all sessions and log out all users.