added pegasus.lua
This commit is contained in:
parent
6cdf82d9c4
commit
ef5ed8cd26
27
content/posts/2023/lua/pegasus.md
Normal file
27
content/posts/2023/lua/pegasus.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
title: "🐎 Pegasus — веб сервер для веб приложений на Lua"
|
||||||
|
date: 2023-09-30T20:08:38+03:00
|
||||||
|
draft: true
|
||||||
|
tags: [http, libs, links, lua, development]
|
||||||
|
---
|
||||||
|
|
||||||
|
**Установка**
|
||||||
|
|
||||||
|
```sh
|
||||||
|
luarocks install pegasus
|
||||||
|
```
|
||||||
|
|
||||||
|
**Использование**
|
||||||
|
|
||||||
|
```lua
|
||||||
|
local pegasus = require 'pegasus'
|
||||||
|
|
||||||
|
local server = pegasus:new({
|
||||||
|
port='9090',
|
||||||
|
location='root/'
|
||||||
|
})
|
||||||
|
|
||||||
|
server:start(function (request, response)
|
||||||
|
print "It's running..."
|
||||||
|
end)
|
||||||
|
```
|
8
content/posts/2023/lua/stylua.md
Normal file
8
content/posts/2023/lua/stylua.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
title: "Stylua"
|
||||||
|
date: 2023-05-09T19:39:22+03:00
|
||||||
|
draft: true
|
||||||
|
tags: [lua, links, development]
|
||||||
|
---
|
||||||
|
|
||||||
|
https://github.com/JohnnyMorganz/StyLua
|
Loading…
Reference in New Issue
Block a user