Giter Site home page Giter Site logo

batyr's Introduction

Batyr - A Chat Logger and Viewer

Synopsis

Batyr is a bot which logs messages from chatrooms to a PostgreSQL database and provides a web interface for browsing and searching the them. The web interface runs under Ocsigen.

Installation

Prepare an OPAM installation as described in http://opam.ocaml.org/, then

opam repo add paurkedal https://github.com/paurkedal/opam-repo-paurkedal.git
opam install batyr

If you wish to try it in a local Git clone, add --deps-only to the last command, then in the top source directory:

ocaml pkg/pkg.ml build

Deployment

See the Ocsigen manual for how to setup up the web server. A sample configuration for Batyr is installed under $prefix/share/batyr. Create a PostgreSQL database, say batyr, which can be accessed by the user running the Ocsigen server, and prepare it with

psql -U batyr batyr -f $prefix/share/batyr/schemas/batyr_base.sql
psql -U batyr batyr -f $prefix/share/batyr/schemas/batyr_proc.sql

The first file contains the table definitions. The second contains views and functions which can be updated without touching any data. Then point to this database in the configuration file /etc/batyr/batyr.conf:

(* Caqti URI for connecting to database. *)
db_uri = "postgresql://batyr@db-host/batyr"

admin = {
  (* Hide the account passwords in the admin interface. *)
  hide_passwords = true
}

A database URI postgresql:/ would give you the ident-authenticated default database.

batyr's People

Contributors

paurkedal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.