Graffinity Server
This project contains server-side functions for Graffinity, prototype software for visualizing connectivity relationships in large graphs.
This project contains the necessary files to launch a virtual machine using Vagrant, install dependencies on that machine, and ultimately configure Neo4j databases for use with Graffinity.
Setup
These directions are for setting up the Graffinity Server for local development and testing. It requires that you use Vagrant. I developed it with Vagrant 1.8.5, though newer versions might also work. You will also need to have the git lfs extension installed before cloning this repository.
- Clone this repository
- Cd into the directory
- Run
vagrant up
to create a new virtual machine and automatically configure it for Graffinity (this will take a while) - Run
vagrant ssh
to connect to the machine - In the virtual machine, launch the script
python /vagrant/run_server.py
to start the Graffinity application - Back on your host machine, run files in the example_scripts directory to test the server
Deploying with apache2
- Install apache2 with modwsgi
- Make symlink to connectivity_matrix_server folder in /var/www
- Make symlink to connectivity_matrix.conf in /etc/apache2/sites-available
- Make the site available -
sudo a2ensite connectivity_matrix.conf
- Edit /etc/apache2/ports.conf - add the line
Listen 8000
- Restart apache2 service