MediaWiki parser in Lua
- 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
If you are using Linux, and don't want to mix Lua / OpenResty environment, you may try
./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../openresty/bin/openresty -p . -c nginx.conf
to start OpenResty.
Otherwise you can use the
- Clone this repository.
- Download and extract the latest Luapower release, then use the extracted directory as Current Working Directory.
- Replace
lpeg/re.lua
with my edition. - Move all the contents inside this repository into current directory.
- Start
nginx
.
That's all. You can browse http://localhost:6699 to see if it works.
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