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.
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.