Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ilyakhokhryakov/xmpp-logger

XMPP Multi-User Chat logger with web-interface written in Ruby
https://github.com/ilyakhokhryakov/xmpp-logger

Last synced: 3 months ago
JSON representation

XMPP Multi-User Chat logger with web-interface written in Ruby

Awesome Lists containing this project

README

        

This is an XMPP Multi-User Chat logger with web-interface written in Ruby. It is made possible by [Sinatra](http://sinatrarb.com), [Blather](https://github.com/adhearsion/blather), and some other awesome software.

Configutation
-------------
XMPP settings (bot's JID, password and nickname and room's name) are specified in `config/xmpp.yml`. Database to use is specified in `config/database.yml`.

Sphinx search
-------------
`xmpp-logger` uses [Sphinx](http://sphinxsearch.com) search engine and [Thinking Sphinx](http://pat.github.io/thinking-sphinx) gem to provide message search. Ruby [Whenever](https://github.com/javan/whenever) gem is used to generate cron tasks for periodic indexing. To update crontab file, run `whenever -i`.

Users management
----------------
At least one user must be created to make possible accessing web-interface.

$ irb
> require './app'
> u = User.new(:login => 'admin')
> u.password = 'admin'
> u.save

Usage
-----
The easiest way to get web-interface up and running is to use `thin -R config.ru start`. XMPP logger should be started separately using `bundle exec ruby logger.rb`