Skip to content

LuaWiki/LuaWiki

Repository files navigation

LuaWiki

MediaWiki parser in Lua

Requirements

  • luapower - all in one / install following packages
    • cjson lpeg luajit luapower-repos nginx openssl pcre resty.http resty-core resty-lrucache zlib
  • luaiter - functional programming library used in LuaWiki
  • lua-resty-string, lua-resty-multipart, lua-resty-lock, lua-resty-mlcache

Deploy Steps

If you are using Linux, and don't want to mix Lua / OpenResty environment, you may try

  1. ./preconfigure.sh to download and compile OpenResty and Luarocks locally. However, this script is still in alpha. Report to GitHub: Geno1024 if you meet any questions.
  2. ./openresty/bin/openresty -p . -c nginx.conf to start OpenResty.

Otherwise you can use the

  1. Clone this repository.
  2. Download and extract the latest Luapower release, then use the extracted directory as Current Working Directory.
  3. Replace lpeg/re.lua with my edition.
  4. Move all the contents inside this repository into current directory.
  5. Start nginx.

That's all. You can browse http://localhost:6699 to see if it works.

Goal

Become an alternative to MediaWiki, a lighter implementation.

  • an LPeg based MediaWiki parser, from MW to HTML
  • re-implement key templates in Lua, and migrate Wikipedia's Lua modules
  • incorporate MariaDB as a database, design basic tables for use
  • editing API and web editor
  • (maybe) sync with Wikipedia, and allow Wikimedia OAuth login, and save to Wikipedia

About

Lua Wiki Engine with MediaWiki-style content

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published