Lua Web Server API - OpenResty Handler
Lua
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
rockspecs
samples
src/wsapi
.gitignore
LICENSE
README.md

README.md

wsapi-openresty

wsapi-openresty is a WSAPI connector for OpenResty. WSAPI, among other things, defines an abstraction layer between your web application and the webserver it is running on, so your application would be webserver agnostic, being able to run on Apache, Xavante and now, OpenResty.

Installing

Install it with LuaRocks:

luarocks install wsapi-openresty

How to use

Take a look at the samples folder. There is an example configuration for OpenResty that runs a simple WSAPI application. To launch the example, first install OpenResty. Then open a shell and do the following:

cd samples
/path/to/openresty/nginx

Then navigate with your browser to http://127.0.0.1:3000.

For an example of an actual application, you can take a look at SeeRedis.

The documentation about WSAPI is here and if you're looking for other applications, take a look at Orbit, Mercury or Sputnik.

Author

Ignacio Burgueño - @iburgueno - https://uy.linkedin.com/in/ignacioburgueno

License

MIT/X11