piazzaoptical.com

Code for what once was piazzaoptical.com. Backend and frontend.

To use:

podman run -it --rm -p 8000:8000 docker.io/library/alpine:3.14  # v3.15 can't seem to work with package "bsd-compat-headers"

Then within the container:

apk add --no-cache build-base bsd-compat-headers m4 openssl-dev libmagic libuuid lmdb lmdb-dev git readline-dev autoconf automake libtool zlib-dev vips ncurses wget unzip openssl util-linux-dev bash
ln -s /usr/lib/libvips.so.42 /usr/lib/libvips.so
git config --global url."https://".insteadOf git:// # for luarocks pulling from github; it uses unencrypted
git clone https://git.sakal.us/brian/luaver.git ~/.luaver
bash

Then in bash shell (not the default ash):

. ~/.luaver/luaver
yes | luaver install 5.1.5
yes | luaver install-luajit 2.0.5
luaver use 5.1.5
luaver use-luajit 2.0.5
yes | luaver install-luarocks 3.8.0
luaver use-luarocks 3.8.0
luarocks install luarocks-fetch-gitrec # for magic
luarocks install compat53
luarocks install cqueues 
luarocks install lpeg 
luarocks install lpeg_patterns 
luarocks install luafilesystem 
luarocks install http 
luarocks install lua-cjson 
luarocks install mimetypes 
luarocks install lrandom 
luarocks install luaprompt
luarocks install magic 
luarocks install lightningmdb 
luarocks install lua_uuid
luarocks install lua-vips

Finally:

git clone https://git.sakal.us/brian/piazzaoptical.com
cd piazzaoptical.com
git submodule update --init --recursive  # for bitser; installed as git submodule
cd server
luajit ./server.lua
S
Description
No description provided
Readme 151 MiB
Languages
HTML 43.6%
CSS 28%
Lua 9.3%
Pug 8.6%
JavaScript 6.2%
Other 4.1%