HTML JavaScript Python
Latest commit 190bb39 Nov 22, 2016 @jaywink Bump geoip-lite
Looks like some ip's are returning wrong countries, updating seems to solve it.
Permalink
Failed to load latest commit information.
migrations Merge pull request #50 from Flaburgan/add-comments-count Nov 1, 2016
src
static
.gitignore
LICENSE
README.md
package.json Bump geoip-lite Nov 22, 2016
python-requirements.txt

README.md

Stories in Ready

The-Federation.info

Statistics hub and node list for The Federation (diaspora*, Friendica, Hubzilla/Redmatrix).

Requirements

  • Node 4.x
  • Python 3.x
  • MySQL/MariaDB

Database creation

Something like this:

create database diasporahub;
create user diasporahub@localhost identified by 'putnicepasswordhere';
grant all on diasporahub.* to diasporahub@localhost;

Copy src/config.js.example to src/config.js and edit proper values there.

Installation

Node

The 4.x LTS version has been tested. For Ubuntu, follow this guide. Other systems follow NodeJS docs.

Install then the Node packages

npm install

Python

Python 3 should hopefully be shipped in your system, if not, install it.

Create a virtualenv using the Python 3 executable and activate it.

The Python dependencies need some system packages. For Ubuntu, this will work, for other systems, find the relevant packages and install.

sudo apt-get install python3-dev libmysqlclient-dev

Install dependencies in your activated virtualenv:

pip install -r python-requirements.txt

Running

Make sure correct Python virtualenv is active. Then in the application abse directory;

node src/app.js

The app will be running at http://127.0.0.1:4730.

We need data

Things wont look nice without any data, so register a node, for example this in a browser:

http://127.0.0.1:4730/register/iliketoast.net

Check the front page and there should be a node listed.

Author

Jason Robinson / @jaywink / https://jasonrobinson.me / https://iliketoast.net/u/jaywink

License

AGPLv3