Skip to content

librewiki/liberty-engine

Repository files navigation

LibertyEngine

Build Status

Table of Contents

Requirements

  • The latest version (10+) of Node.js
  • MariaDB version 10+
    • Mroonga storage engine for fulltext search. sudo apt install mariadb-plugin-mroonga
  • Nginx
  • Redis (optional)

Installation (Ubuntu / Debian)

# install dependencies
sudo apt update
sudo apt install mariadb-server
sudo apt install mariadb-plugin-mroonga
sudo apt install nginx
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install nodejs
# install LibertyEngine
git clone https://github.com/librewiki/liberty-engine.git
cd liberty-engine
npm i
npm run setup

Start

npm start

Stop

npm stop

Upgrade

git pull
npm run upgrade

Development

npm run dev # runs API development server at http://localhost:3001

Migration from Mediawiki (experimental)

bin/import-from-mw < your_mw_dump_file.xml

When Mroonga related error occurs

sudo mysql
mysql> INSTALL SONAME 'ha_mroonga';