https://github.com/nesktf/chenga_store
Simple manga e-commerce written in Lua
https://github.com/nesktf/chenga_store
chen college-project htmx lapis lua manga openresty picocss postgresql
Last synced: 2 months ago
JSON representation
Simple manga e-commerce written in Lua
- Host: GitHub
- URL: https://github.com/nesktf/chenga_store
- Owner: nesktf
- Created: 2024-11-08T00:51:23.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-02-05T04:19:58.000Z (4 months ago)
- Last Synced: 2025-02-05T04:27:02.887Z (4 months ago)
- Topics: chen, college-project, htmx, lapis, lua, manga, openresty, picocss, postgresql
- Language: Lua
- Homepage:
- Size: 1.86 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
# Chenga
Simple manga e-commerce I made for a college project. Writen in Lua, using
[lapis](https://github.com/leafo/lapis),
[htmx](https://github.com/bigskysoftware/htmx),
and [picocss](https://github.com/picocss/pico).## Installing
Only tested on Debian 12 Bookworm, should work fine in other distros.
May or may not run on Windows.Install PostgreSQL, Luarocks and Lua5.1/LuaJIT using your system package manager, then download
the luarocks dependencies.
```sh
sudo apt install postgresql postgresql-contrib luarocks liblua5.1-dev libluajit-5.1-dev
luarocks install lapis lua-cjson bcrpyt tableshape bit lpeg --local --lua-version=5.1
```Additionaly, you have to install openresty. Follow the installation instructions in
[openresty's installation page](https://openresty.org/en/installation.html).## Settings
You can modify the project settings in `app/config.lua`.By default, PostgreSQL should be running in port 5432, have an `ecommerce` database and set
the password as `password` for user `postgres`. The queries in `sql_init.sql` can be used to create the database.You also need to add a `data/secret.lua` file, it should return a string to be
used as a secret token.
```lua
-- data/secret.lua
return "myfunnysecrethehehaha"
```## Running
Go inside the `app/` folder and run one of the following commands (don't forget to load your
luarocks environment):
```sh
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

### Details page

### Dashboard
