Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/alifeee/polycule-visualiser
- Owner: alifeee
- Created: 2024-06-18T22:23:41.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-20T22:48:28.000Z (7 months ago)
- Last Synced: 2024-12-12T17:48:40.433Z (about 1 month ago)
- Topics: graph, network, polyamory, polycule, self-hosted, springy, undirected-graph
- Language: JavaScript
- Homepage: http://alifeee.co.uk/polycule-visualiser/
- Size: 854 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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/