Skip to content

mpilhlt/skohub-pubsub

 
 

Repository files navigation

Build

https://github.com/hbz/skohub-pubsub/actions?query=workflow%3ABuild

skohub-pubsub

This part provides the SkoHub core infrastructure, setting up basic inboxes for subjects plus the ability of subscribing to push notifications for those inboxes. For usage and implementation details see the blog post. Dependencies:

  • elasticsearch 6.8
  • mongodb
  • node-version >= v12.16.1

Basic setup:

$ git clone https://github.com/skohub-io/skohub-pubsub.git
$ cd skohub-pubsub
$ npm install
$ npm test
$ PORT=3000 npm start

This will start the ActivityPub server on the specified PORT. It accepts FOLLOW messages sent to the /inbox. All other activity types are currently ignored.

Non-activity objects sent to /inbox?actor=username/repo/some/classification/path1 are distributed as NOTE objects to the corresponding followers. The original notifications are delivered as an attachment of the note.

Some actions may need certificates. These must reside in the data directory named as private.pem and public.pem.

elasticsearch

You need to run a properly configured elasticsearch instance by setting cluster.name: skohub. See the provided elasticsearch.yml. Also, in some contexts, it's mandatory to initialize elasticsearch with a proper index-mapping.

start scripts

You may want to use the start script in scripts/start.sh. This script ensures the proper installation of skohub-pubsub and the configuration of elasticsearch. There also reside further scripts to manage the starting/stopping of the skohub-pubsub via init and to monitor the processes with monit.

Credits

The project to create a stable beta version of SkoHub has been funded by the North-Rhine Westphalian Library Service Centre (hbz) and carried out in cooperation with graphthinking GmbH in 2019/2020.

Footnotes

  1. Actor names are considered relative to the hostname of the server.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.3%
  • Shell 17.7%