<commit_before>[![Stories in Ready](https://badge.waffle.io/jaywink/the-federation.info.png?label=ready&title=Ready)](https://waffle.io/jaywink/the-federation.info) [![chat on freenode](https://img.shields.io/badge/chat-on%20freenode-brightgreen.svg)](http://webchat.freenode.net?channels=%23thefederation&uio=d4) [![Chat on Gitter](https://badges.gitter.im/the-federation-info/Lobby.svg)](https://gitter.im/the-federation-info/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![chat on matrix](https://img.shields.io/badge/chat-on%20matrix-orange.svg)](https://riot.im/app/#/room/#thefederation:matrix.org) [![](https://img.shields.io/badge/license-AGPLv3-green.svg)](https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0))

# The-Federation.info

Statistics hub and node list for the Fediverse. Currently tracking projects using the Diaspora protocol, including:
 
 * diaspora*
 * Friendica
 * Hubzilla
 * GangGo
 * Socialhome
 
Tracking of ActivityPub and OStatus protocols is planned.

**NOTE! This branch is part of a site rewrite. For current production version, see master branch.**

Site found at: https://the-federation.info

## Contributing

TBD

## Tech stack

* Node 9
* Python 3.6
* Django 2.0
* PostgreSQL
* Vue 2
* Webpack
* GraphQL<commit_msg>Add some development environment instructions<commit_after>[![Stories in Ready](https://badge.waffle.io/jaywink/the-federation.info.png?label=ready&title=Ready)](https://waffle.io/jaywink/the-federation.info) [![chat on freenode](https://img.shields.io/badge/chat-on%20freenode-brightgreen.svg)](http://webchat.freenode.net?channels=%23thefederation&uio=d4) [![Chat on Gitter](https://badges.gitter.im/the-federation-info/Lobby.svg)](https://gitter.im/the-federation-info/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![chat on matrix](https://img.shields.io/badge/chat-on%20matrix-orange.svg)](https://riot.im/app/#/room/#thefederation:matrix.org) [![](https://img.shields.io/badge/license-AGPLv3-green.svg)](https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0))

# The-Federation.info

Statistics hub and node list for the Fediverse. Currently tracking projects using the Diaspora protocol, including:
 
 * diaspora*
 * Friendica
 * Hubzilla
 * GangGo
 * Socialhome
 
Tracking of ActivityPub and OStatus protocols is planned.

**NOTE! This branch is part of a site rewrite. For current production version, see master branch.**

Site found at: https://the-federation.info

## Contributing

TBD

## Tech stack

* Node 9
* Python 3.6
* Django 2.0
* PostgreSQL
* Vue 2
* Webpack
* GraphQL

## Backend

### Dependencies

``` bash
pip install -U pip setuptools pip-tools
pip-sync dev-requirements.txt
```

### DB

``` bash
sudo su - postgres
createuser -s -P thefederation  # give password '<PASSWORD>'
createdb -O thefederation thefederation
exit
python manage.py migrate
```
{'fraction_non_alphanumeric': 0.1523066485753053, 'fraction_numerical': 0.011533242876526458, 'mean_word_length': 5.234672304439746, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1286145', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1023, 'n_words': 190}