hanxi / wlua-demo

wlua demo

Home Page:http://home.hanxi.cc:2888/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wlua-demo

wlua demo

A demo for wlua

Try in docker

docker run -p 2888:2888 -d hanxi/wlua-demo:master

See website in browser http://localhost:2888 .

Run this demo local

Install wlua see hanxi/wlua#readme .

git clone git@github.com:hanxi/wlua-demo.git
cd wlua-demo
git sumodule update --init
wlua start
tail -F log/wlua.log

HTTP API

Front web fork from https://github.com/PanJiaChen/vue-admin-template/ , see https://juejin.cn/post/6844903476661583880 to learn how to use.

Use wlua implement this apis:

  • /user/login [POST]
  • /user/logout [POST]
  • /user/info [GET]
  • /table/list [GET]

Api code in app/routes/user.lua and app/routes/table.lua .

Screenshots

About

wlua demo

http://home.hanxi.cc:2888/


Languages

Language:Lua 76.7%Language:Shell 19.1%Language:Dockerfile 4.2%