Skip to content

ignacio/wsapi-openresty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Lua Web Server API - OpenResty Handler

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages