https://github.com/tsileo/gluapp
HTTP framework for GopherLua.
https://github.com/tsileo/gluapp
go lua web-framework
Last synced: 7 months ago
JSON representation
HTTP framework for GopherLua.
- Host: GitHub
- URL: https://github.com/tsileo/gluapp
- Owner: tsileo
- License: mit
- Created: 2017-03-05T10:14:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-04T17:12:38.000Z (almost 6 years ago)
- Last Synced: 2025-03-24T08:08:27.403Z (11 months ago)
- Topics: go, lua, web-framework
- Language: Go
- Homepage: https://a4.io/gluapp
- Size: 137 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gluapp
[](https://builds.sr.ht/~tsileo/gluapp?)
[](https://godoc.org/a4.io/gluapp)
HTTP framework for [GopherLua](https://github.com/yuin/gopher-lua).
## Features
- Simple
- No 3rd party requirements except gopher-lua
- Rely on Go template language
- Same request/response idioms as Go HTTP lib
- Comes with a basic (and optional) router
- First-class JSON support
- Included HTTP client
- Support importing dependency from GitHub on the fly with [require2](https://github.com/tsileo/gluarequire2)
## Example
```lua
local router = require('router').new()
router:get('/hello/:name', function(params)
app.response:write('hello ' .. params.name)
end)
router:run()
```
## TODO
- [ ] Write Lua modules documentation
- [ ] A module for web scrapping
- [ ] A basic key-value store module
- [ ] `read_file`/`write_file`/`read_json` helper