You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
brian ea7f8c2bf3 Finalized instructions 3 years ago
jsapp initial commit: migrated from FossilSCM to git 3 years ago
public initial commit: migrated from FossilSCM to git 3 years ago
server initial commit: migrated from FossilSCM to git 3 years ago
.gitignore initial commit: migrated from FossilSCM to git 3 years ago
.gitmodules initial commit: migrated from FossilSCM to git 3 years ago
README.md Finalized instructions 3 years ago
todo initial commit: migrated from FossilSCM to git 3 years ago

README.md

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
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