GithubHelp home page GithubHelp logo

anubhav253 / graphspace Goto Github PK

View Code? Open in Web Editor NEW

This project forked from murali-group/graphspace

0.0 2.0 0.0 319.84 MB

The interactive graph sharing website.

Home Page: http://graphspace.org

License: GNU General Public License v2.0

RAML 3.58% Python 41.75% Shell 0.01% Mako 0.05% HTML 36.16% CSS 0.79% JavaScript 17.65%

graphspace's Introduction

GraphSpace

GraphSpace is running at http://graphspace.org

GraphSpace has three dummy users:

  1. Username: [email protected] Password: user1
  2. Username: [email protected] Password: user2
  3. Username: [email protected] Password: user3

Requirements

  1. Python v2.7.10
  2. postgreSQL
  3. virtualenv
  4. bower
  5. ElasticSearch

Running GraphSpace locally

In order to run GraphSpace, please install postgreSQL and both the Python runtime and development environments. We have tested GraphSpace with Python v2.7.10 and postgreSQL v9.6.2. GraphSpace does not support Python v3. GraphSpace performs best on either Mozilla Firefox or Google Chrome browsers. The following steps describe how to install Python packages required by GraphSpace, download the GraphSpace code, and set up and start the server. The following instructions should apply to computers running a version of the Linux or OS X operating systems.

  1. Download the GraphSpace code by running git clone https://github.com/Murali-group/GraphSpace.git or by downloading the latest release: https://github.com/Murali-group/GraphSpace/releases.
  2. Visit the GraphSpace directory: cd GraphSpace
  3. Create a virtual environment for the project: virtualenv venv
  4. Start using the virtual environment: source venv/bin/activate
  5. In /graphspace/settings/local.py file, change the postgres user credentials:
    DATABASES = {
         'default': {
             'ENGINE': 'django.db.backends.postgresql_psycopg2',
             'NAME': <database name>,
             'USER': <user name>,
             'PASSWORD': <password (if any)>,
             'HOST': 'localhost',
             'PORT': '5432'
         }
     }
    
  6. Install graphspace: sh install.sh
  7. Finally, start the GraphSpace server: python manage.py runserver --settings=graphspace.settings.local
  8. Visit http://localhost:8080 and enjoy using GraphSpace!

Running GraphSpace on Apache

This section describes the steps required to launch GraphSpace on a server that has apache2 running on it. First, please follow the steps in Running GraphSpace locally. Next, execute the instructions below.

  1. Follow instructions 1-5 in Running GraphSpace locally
  2. Add settings file production.py by copying local settings file. cp graphspace/settings/local.py graphspace/settings/
  3. Update your production.py settings file.
  4. InSet URL_PATH to the URL where your server will be running. Note: Please add the ending '/' character at the end of this value: For example: http://graphspace.org/
  5. Modify the PATH to point to where GraphSpace directory exists. Note: Please add the ending '/' character at the end of this value: For example: /home/ubuntu/GraphSpace/
  6. Visit the apache2 directory: cd /path_to/apache2. An example of the full path to this directory is /etc/apache2.
  7. Navigate to the sites-enabled directory: cd sites-enabled
  8. Create a file called graphspace.conf and access this file using admin privileges: `sudo vim graphspace.conf'
  9. Inside this file, copy and paste following lines, after replacing path_to_GraphSpace with the name of the directory where you downloaded GraphSpace:
WSGIDaemonProcess GraphSpace python-path=/path_to_GraphSpace:/path_to_GraphSpace/venv/lib/python2.7/site-packages/ python-eggs=/path_to_python_eggs
WSGIProcessGroup GraphSpace
WSGIScriptAlias / /path_to_GraphSpace/graphspace/wsgi.py

 <Directory /path_to_GraphSpace/graphspace/>
    <Files wsgi.py>
        Order deny,allow
        Require all granted
    </Files>
 </Directory>
 
 Alias /static/ /path_to_GraphSpace/graphs/static/
 
 <Directory /path_to_GraphSpace/graphs/static/>
     Require all granted
 </Directory>
 
 <Directory /path_to_GraphSpace>
  Options Indexes FollowSymLinks
  AllowOverride None
  Require all granted
 </Directory>
  1. Install module to recognize Django application through apache2: sudo apt-get install libapache2-mod-wsgi
  2. Give permission to access static files through apache2. Navigate outside GraphSpace and type: chmod 777 GraphSpace
  3. Create a directory for python-eggs. mkdir /path_to_python_eggs
  4. Give permission to access static files through apache2. chmod 777 /path_to_python_eggs
  5. Restart the apache server. On a computer running Ubuntu, the command is sudo service apache2 restart

Refer to https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/modwsgi/ if any problems occur with the setup.

Contributing

Feel free to fork and send us pull requests. Here are the guidelines for contribution in GraphSpace.

graphspace's People

Contributors

adbharadwaj avatar dsin52 avatar mriduls avatar melvin15may avatar yoonjintkim avatar annaritz avatar tmmurali avatar mishravikas avatar pratik151 avatar mr-c avatar sandeepm96 avatar jlaw9 avatar

Watchers

James Cloos avatar Anubhav Kumar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.