/seeredis

Web application to see the data stored in a Redis instance

Primary LanguageCSSMIT LicenseMIT

seeredis

Web application to see the data stored in a Redis instance. This was a quick experiment to see how easy could it be to port existing WSAPI applications to run with OpenResty.

The application is fully functional, but ugly looking :)

Installing

You need to have OpenResty installed. I tested with 1.9.7.3. Go grab it here. Once it is installed, clone this repository.

git clone https://github.com/ignacio/seeredis.git

Install LuaRocks if you haven't already, since we need to install some Lua modules:

luarocks install wsapi-openresty
luarocks install webrender --server=https://luarocks.org/manifests/ignacio
luarocks install orbit

Edit conf/develop.conf and adjust the path to OpenResty's libraries. Then start the service:

/path/to/openresty/nginx -c conf/develop.conf -p /path/to/seeredis

Finally, navigate with your browser to:

http://127.0.0.1

Then, indicate the IP/port of the running Redis instance that you want to inspect and hit "Connect".

Why?

Well, this was just a proof of concept. The idea was to port an already existing Lua application, which was coded against WSAPI, to run on OpenResty. Since there wasn't any existing WSAPI connector for OpenRest, I wrote one.

The only "big" change that was needed was to use lua-resty-redis instead of the current blocking client.

Author

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

License

MIT/X11