ceno-reader/

directory
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2016 License: AGPL-3.0

README

CENO Reader

This package contains an implementation of a CENO agent responsible for reading RSS and Atom feeds for sites which it populates a template with.

You can read all about how the CENO Reader handles RSS in the dedicated RSS documentation.

Contents

  1. Dependencies
  • Go
  1. Building
  2. Configuration
  3. Translating

Dependencies

  1. Go(lang) - https://golang.org/
Go(lang)

Golang can be downloaded from the official site. Once installed, you should set the GOROOT, GOPATH, and PATH environment variables. GOROOT should be set to the location which you installed Go to, e.g. /usr/lib/go if you don't already have it set.. GOPATH should be set to $HOME/go if you don't already have it set. PATH should have $GOROOT/bin appended to it.

export GOPATH=$HOME/go
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin

Building

Once you've installed all of the dependencies, you can build CENO Reader by running

./build.sh

This will format the go files, install all dependency libraries, and compile the reader executable to a file called reader.

Configuration

Configuration settings for the CENO Reader are provided in a JSON file. A default configuration exists at ceno-reader/config/default.json.

Note that all configuration values are strings (surrounded by double-quotes "), unless specified otherwise.

PortNumber

The port number that the CENO Reader HTTP server should listen for requests on. This must be prefixed by a colon :.

BundleServer

The URI of the bundle server to request new bundles for RSS items from.

BundleInserter

The URI of the bundle inserter to post requests to have bundles stored in.

Translating

The CENO Reader can be translated by following the exact same steps as those described in the CENO Client's README. Just as in the CENO Client's case, the tools/json-translation.py script is supplied, and all JSON files for translation are found in ceno-reader/translations. You should be able to follow the CENO Client's instructions literally, save for obvious replacements in the directory ceno-client with ceno-reader.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL