lor
v0.3.4
中文 Inglés
Un marco web rápido y minimalista basado en OpenResty.
local lor = require ( " lor.index " )
local app = lor ()
app : get ( " / " , function ( req , res , next )
res : send ( " hello world! " )
end )
app : run ()git clone https://github.com/sumory/lor
cd lor
make install LOR_HOME y LORD_BIN son compatibles con Makefile , por lo que el siguiente comando podría usarse para personalizar la instalación:
make install LOR_HOME=/path/to/lor LORD_BIN=/path/to/lord
opm install es compatible con V0.2.2.
opm install sumory/lor
lord CLI no es compatible con esta instalación.
Puede usar HomeBrew-Lor en Mac OSX.
$ brew tap syhily/lor
$ brew install lor
Middleware Una forma rápida de comenzar con LOR es utilizar el lord de la herramienta CLI ejecutable para generar una aplicación de andamio.
lord está instalado con el marco lor . Parece:
$ lord -h
lor ${version} , a Lua web framework based on OpenResty.
Usage: lord COMMAND [OPTIONS]
Commands:
new [name] Create a new application
start Starts the server
stop Stops the server
restart Restart the server
version Show version of lor
help Show help tipsCrear aplicación:
$ lord new lor_demo
Servidor de inicio:
$ cd lor_demo && lord start
Visite http: // localhost: 8888.
Instalar Busted, luego ejecutar la prueba
busted spec/*
https://github.com/syhily/homebrew-lor mantenido por @syhily
MIT