Sunnepah / iupds-appscale

POC implementation of Application-agnostic Personal Storage for Linked Data - Master Thesis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iupds-appscale is a Django application

The entire PDS POC has 3 setup components - carry out the setup in this order

  1. PDS Graph API Service
  2. PDS - this repository
  3. PDS Client - the client to test

NOTE: Requires Virtualbox,Vagrant, Virtualenv, Node.js, AppScale,Django, and Ansible.

Setup AppScale - Full details here

  • $ mkdir -p ~/appscale
  • $ cd ~/appscale # appscale working directory
  • $ git clone https://github.com/Sunnepah/appscale.git
  • $ git clone https://github.com/Sunnepah/appscale-tools.git
  • $ cd appscale-tools
  • $ wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python # If Python Setuptools is not install already
  • $ sudo python setup.py install # Detailed AppScale-tools installation
  • $ cd ../ # go back to AppScale working directory

Clone this repository into AppScale working directory.

  • $ git clone --recursive https://github.com/Sunnepah/iupds-appscale.git pds
  • $ cd pds/
  • $ sudo pip install virtualenv
  • $ virtualenv venv
  • $ source venv/bin/activate
  • $ pip install -r requirements-local.txt
  • $ pip install -r requirements-vendor.txt -t lib # for AppScale deployment NOTE: In case you don't have nodejs,bower,gulp installed yet, install them first nodejs,bower, gulp
  • $ npm install bower
  • $ npm install
  • $ bower install
  • $ gulp default
  • $ python manage.py collectstatic

Deploy pds to AppScale!

  • $ cd ../ # Return to AppScale working directory
  • $ mv pds/AppScalefile .
  • $ mv pds/Vagrantfile .
  • $ sudo pip install ansible # Ansible Installation, If pip is not yet installed install pip

Note: the next step will install MySQL,create db and import pds db dump in the VM. db_user, db_name and db_password can be changed here pds/ansible/vagrant.yml and you must update those credentials in iupds/settings.py

Also, the PDS Graph API Service's IP/Domain must be set in pds/ansible/vagrant.yml or use default. But it must match the one you used while setting up PDS Graph API Service

  • $ vagrant up
  • $ appscale up # If prompted for root password , enter vagrant
  • $ appscale deploy pds

You should see Your app can be reached at the following URL: http://192.168.33.10:8080.

Troubleshooting

  • $ appscale tail 0 app___iupds-210.log

About

POC implementation of Application-agnostic Personal Storage for Linked Data - Master Thesis

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 51.2%Language:CSS 20.6%Language:Python 20.2%Language:HTML 5.9%Language:API Blueprint 2.1%Language:Jinja 0.0%Language:Shell 0.0%