Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsileo/gluapp
HTTP framework for GopherLua.
https://github.com/tsileo/gluapp
go lua web-framework
Last synced: 3 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 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-04T17:12:38.000Z (almost 5 years ago)
- Last Synced: 2024-06-21T16:50:57.462Z (7 months ago)
- Topics: go, lua, web-framework
- Language: Go
- Homepage: https://a4.io/gluapp
- Size: 137 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gluapp
[![builds.sr.ht status](https://builds.sr.ht/~tsileo/gluapp.svg)](https://builds.sr.ht/~tsileo/gluapp?)
[![Godoc Reference](https://godoc.org/a4.io/gluapp?status.svg)](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