This repository has been archived by the owner. It is now read-only.
The first public catalog for matrix rooms, grouped by ratings or categories.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docks
source
.gitignore
README.md
docker-compose.yml
pytest.ini

README.md

Matrix Stats

Website: https://matrixstats.org

Matrix room: #matrixstats:matrix.org

Screenshots:

Matrixstats screenshot 1 Matrixstats screenshot 2

Installation (dev version)

Requirements

  • python 3.6+
  • postgresql 10.0+

1. Clone the repository

Clone the repository:

https://github.com/a13xmt/matrixstats.org.git

2. Install the requirements

Install all the project requirements via pip:

pip install -r source/requirements.pip

(optional) use virtualenv and python-virtualenvwrapper for installation

3. Create a database

Open the postgres shell via psql and run the following:

CREATE DATABASE matrixstats;
CREATE USER matrixstats WITH PASSWORD 'matrixstats';
GRANT ALL PRIVILEGES ON DATABASE matrixstats TO matrixstats;

4. Set environment variables

Fill environment template with your own settings:

vi source/matrix_stats/settings/env_template

Activate the environment file:

set -a
source source/matrix_stats/settings/env_template
set +a

(optional) add this code to virualenv postactivation hooks /home/<user_name>/.virtualenvs/<env_name>/bin/postactivate

5. Apply database migrations

Apply database migrations:

python manage.py migrate

6. Run dev server

Run development server, listening on http://127.0.0.1:8000

python manage.py runserver

(optional) Add admin account via python manage.py createsuperuser with admin page on http://127.0.0.1:8000/admin/

Additional info

Some ratings (7/30/90 days based) may work weird on development server due to lacking statistical data. It's OK if there are some empty widgets on the main page.