The entire PDS POC has 3 setup components - carry out the setup in this order
- PDS Graph API Service
- PDS - this repository
- 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
$ 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
$ cd ../
# Return to AppScale working directory$ mv pds/AppScalefile .
$ mv pds/Vagrantfile .
$ sudo pip install ansible
# Ansible Installation, Ifpip
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 forroot password
, entervagrant
$ 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