Sign inSign up

ezpaarseproject/biblio-broadcaster

By ezpaarseproject

•Updated almost 10 years ago

Parse and broadcast logs from bibliomap-harvester

Image
0

1.3K

ezpaarseproject/biblio-broadcaster repository overview

⁠biblio-broadcaster

This repository aims to create a general-purpose version of bibliomap-enricher⁠. The application listens for bibliomap-harvester⁠ data, sends logs to ezPAARSE⁠ and broadcasts the results over websocket.

⁠Prerequisites

  • Docker/docker-compose

⁠Install and run

This project is expected to work with bibliomap-harvester⁠ and ezPAARSE⁠. An example will be available soon for bibliomap⁠.

⁠How to use

A socket.io client can be downloaded at /socket.io/socket.io.js. Then you can listen for the ec events.

  <script src="http://localhost:27779/socket.io/socket.io.js"></script>
  <script>
    var socket = io('http://localhost:27779');
    socket.on('ec', function (data) {
      console.log(data);
    });
  </script>

⁠Configuration

You can customize the configuration using environment variables:

  • BBE_EZPAARSE_URL
  • BBE_EZPAARSE_PREDEF
  • BBE_HARVESTER_HOST
  • BBE_HARVESTER_PORT
  • BBE_BROADCAST_PORT
  • BBE_AUTOCONNECT_DELAY

Look at config.json⁠ to see the default values.

⁠Developement

git clone https://github.com/ezpaarse-project/biblio-broadcaster.git
cd biblio-broadcaster
make install
DEBUG=biblio* make run-debug

Tag summary

Content type

Image

Digest

Size

258.9 MB

Last updated

almost 10 years ago

docker pull ezpaarseproject/biblio-broadcaster