Skip to content

nesktf/chenga_store

Repository files navigation

chenga

Chenga

Simple manga e-commerce I made for a college project. Writen in Lua, using lapis, htmx, and picocss.

Installing

Tested on Debian 12 Bookworm and Arch Linux, but it should work fine on other distros.

First you need to install openresty, LuaJIT and luarocks. Follow the installation instructions from openresty's installation page or install it from your package manager if it's available.

You need to install the following dependencies from luarocks:

luarocks install lapis lua-cjson bcrpyt tableshape bit lpeg --local --lua-version=5.1

For the database you have two options, either run PostgreSQL locally and create the user and database specified in config.lua, or just use docker with the provided docker-compose.yml

Lastly, you have to define a secret in the data/secret.lua file. It just has to return a string that will be used as a secret token, like the following:

-- data/secret.lua
return "myfunnysecrethehehaha"

Running

Run one of the following commands (don't forget to load your luarocks environment):

lapis server development # to run in dev mode
lapis server production # to run in production mode

The website runs on port 8080 by default.

Images

Home page

chenga_home

Details page

chenga_mofuark

Dashboard

chenga_admin

About

Simple manga e-commerce written in Lua

Topics

Resources

License

Stars

Watchers

Forks

Languages