Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alifeee/polycule-visualiser

A polycule graph visualiser designed to be self-hosted.
https://github.com/alifeee/polycule-visualiser

graph network polyamory polycule self-hosted springy undirected-graph

Last synced: about 1 month ago
JSON representation

A polycule graph visualiser designed to be self-hosted.

Awesome Lists containing this project

README

        

# Polycule Visualiser

A graph visualiser designed to be self-hosted, using [Springy]

See a non-editable example →

![GIF of graph moving in a spring-like motion](./images/cule.gif)

## How to build site

### Install

Install dependencies & copy site-specific data files.

```bash
npm install
cp polycule.json.example polycule.json
nano polycule.json
cp _data/URIs.json.example _data/URIs.json
nano _data/URIs.json
```

### Build site

We build with a script, which changes the ownership of the built files, so that the www-data user can change them later.

```bash
./build.sh
```

### Develop

```bash
npm run dev
```

## Set up on server

```bash
mkdir -p /var/www/
git clone [email protected]:alifeee/polycule-visualiser /var/www/polycule
```

Generate a password file for the site

```bash
sudo htpasswd -c /var/www/polycule/.htpasswd
```

Add the following to nginx config (using `fastcgi`)

```nginx
location /polycule/ {
alias /var/www/polycule/_site/;
try_files $uri $uri/ =404;
auth_basic "polycule";
auth_basic_user_file /var/www/polycule/.htpasswd;
}
location /polycule/edit {
fastcgi_intercept_errors on;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/polycule/edit.cgi;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
auth_basic "polycule";
auth_basic_user_file /var/www/polycule/.htpasswd;
}
```

[Springy]: http://getspringy.com/