A graph visualiser designed to be self-hosted, using Springy
See a non-editable example → http://alifeee.co.uk/polycule-visualiser/
The graph is defined by YAML:
nodes:
- name: Seraphina
- name: Elfo
- name: France
edges:
- from: Seraphina
to: Elfo
- from: Elfo
to: France
type: dashed
- Download the files (as a zip) and extract to a folder
- open
index.html
with a text editor (Notepad/etc) - edit the polycule at the top of the file
- open (double click or open in browser)
index.html
mkdir -p /var/www/
git clone git@github.com:alifeee/polycule-visualiser /var/www/polycule
cd /var/www/polycule
cp .env.example .env
cp polycule.yaml.example polycule.yaml
# We change the ownership of the built files, so that the www-data user can change them later.
sudo chown $USER:www-data polycule.yaml
# Generate a password file for the site
sudo htpasswd -c /etc/nginx/polycule.htpasswd <new_user>
Add the following to nginx config (using fastcgi
)
location /polycule/ {
alias /usr/alifeee/polycule/;
try_files $uri $uri/ =404;
auth_basic_user_file /etc/nginx/polycule.htpasswd;
auth_basic "polycule";
}
location ~ ^(/polycule/edit|/polycule/rss) {
fastcgi_intercept_errors on;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/alifeee$fastcgi_script_name;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
auth_basic_user_file /var/www/polycule/.htpasswd;
auth_basic "polycule";
}