The clean & modern RSS server that doesn't give you any crap. https://thearsse.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
J. King 262980d564 Process color() functions in stylesheet 5 years ago
dist Consolidate configuration samples 5 years ago
docs Process color() functions in stylesheet 5 years ago
lib Documentation for user management and OPML 5 years ago
locale Do not necessarily ignore blank tags in import 5 years ago
sql Add access tokens to the db, with relevant code 5 years ago
tests Slight fixes to Robo and PHPUnit 5 years ago
vendor-bin Use Robo to extract zip archive 5 years ago
www/tt-rss/images Whitespace cleanup 6 years ago
.gitattributes Use Robo for programming task execution 6 years ago
.gitignore First attempt at a custom Daux theme 5 years ago
.php_cs.dist Style fixes 5 years ago
AUTHORS Added per-file legal boilerplate 7 years ago
CHANGELOG Date 0.8.0 release 5 years ago
CONTRIBUTING.md Update test-running examples 6 years ago
LICENSE Add license file and skeleton of readme 7 years ago
README.md Rededicate the README file as a programmer's guide 5 years ago
RoboFile.php Fix manual cleanup 5 years ago
UPGRADING Documentation update; fixes #168 5 years ago
arsse.php Upgrade to Diactoros 2.x 5 years ago
composer.json Merge branch 'fever' into opml 5 years ago
composer.lock Merge branch 'fever' into opml 5 years ago
package.json Process color() functions in stylesheet 5 years ago
phpdoc.dist.xml Docblocks for Conf 7 years ago
postcss.config.js Process color() functions in stylesheet 5 years ago
robo Slight fixes to Robo and PHPUnit 5 years ago
robo.bat Fix error in Windows robo script 6 years ago
yarn.lock Process color() functions in stylesheet 5 years ago

README.md

The Advanced RSS Environment

The Arsse is a news aggregator server, written in PHP, which implements multiple synchronization protocols. Unlike most other aggregator servers, The Arsse does not include a Web front-end (though one is planned as a separate project), and it relies on existing protocols to maximize compatibility with existing clients.

Information on how to install and use the software can be found in the manual, which is available online as well as with every copy of the software. This readme file instead focuses on how to set up a programming environment to modify the source code.

Installing from source

The main repository for The Arsse can be found at code.mensbeam.com, with a mirror also available at GitHub. The main repository is preferred, as the GitHub mirror can sometimes be out of date.

Composer is required to manage PHP dependencies. After cloning the repository or downloading a source code tarball, running composer install will download all the required dependencies, and will advise if any PHP extensions need to be installed.

Common tasks

We use a tool called Robo to simplify the execution of common tasks. It is installed with The Arsse's other dependencies, and its configured tasks can be listed by executing ./robo without arguments.

Running tests

The Arsse has an extensive PHPUnit test suite; tests can be run by executing ./robo test, which can be supplemented with any arguments understoof by PHPUnit. For example, to test only the Tiny Tiny RSS protocol, one could run /robo test --testsuite TTRSS.

There is also a test:quick Robo task which excludes slower tests, and a test:full task which includes redundant tests in addition to the standard test suite

Testing PostgreSQL and MySQL

TODO

Test coverage

Computing the coverage of tests can be done by running ./robo coverage. Either phpdbg or Xdebug is required for this. An HTML-format coverage report will be written to ./tests/coverage/.

Enforcing coding style

The php-cs-fixer tool, executed via ./robo clean, can be used to rewrite code to adhere to The Arsse's coding style. The style largely follows PSR-2 with some exceptions:

  • Classes, methods, and functions should have their opening brace on the same line as the signature
  • Anonymous functions should have no space before the parameter list

Building the manual

The Arsse's user manual, made using Daux, can be compiled by running ./robo manual, which will output files to ./manual/. It is also possible to serve the manual from a test HTTP server on port 8085 by running ./robo manual:live.

Rebuilding the manual theme

The manual employs a custom theme derived from the standard Daux theme. If the standard Daux theme receives improvements, the custom theme can be rebuilt by running ./robo manual:theme. This requires that NodeJS and Yarn be installed, but JavaScript tools are not required to modify The Arsse itself, nor the content of the manual.

The Robo task manual:css will recompile the theme's stylesheet without rebuilding the entire theme.

Packaging a release

Producing a release package is done by running ./robo package. This performs the following operations:

  • Duplicates a working tree with the commit (usually a release tag) to package
  • Generates the manual
  • Installs runtime Composer dependencies with an optimized autoloader
  • Deletes numerous unneeded files
  • Exports the default configuration of The Arsse to a file
  • Compresses the remaining files into a tarball

Due to the first step, Git is required to package a release.