From b18a10ac14d6b1a99fda9a16d9f035abab2b4f66 Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 23 Mar 2022 21:14:28 -0500 Subject: [PATCH] "How to use" info --- README.md | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5283e7b..8590f18 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,46 @@ # piazzaoptical.com -Code for what once was piazzaoptical.com. Backend and frontend. \ No newline at end of file +Code for what once was piazzaoptical.com. Backend and frontend. + +## To use: + +```bash +podman run -it --rm -p 8000:8000 docker.io/ +``` + +Then: + +```bash +apt update +apt install m4 libssl-dev +apt install libmagic-dev uuid-dev liblmdb-dev +apt install git # for lua_uuid +luarocks install luarocks-fetch-gitrec # for magic +apt install libreadline-dev # for luaprompt +git config --global url."https://".insteadOf git:// # for luarocks pulling from github; it uses unencrypted +apt install autoconf libtool libz-dev # for magic +apt install libvips42 && ln -s /usr/lib/x86_64-linux-gnu/libvips.so.42 /usr/lib/x86_64-linux-gnu/libvips.so +apt install lua5.1 # for cqueues +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: + +```bash +git clone https://git.sakal.us/brian/piazzaoptical.com +cd piazzaoptical.com +git submodule update --init --recursive # for bitser; installed as git submodule +``` \ No newline at end of file