Skip to content

Vagrant developer environment

Chris Churas edited this page Jun 16, 2020 · 2 revisions

The following commands utilize Vagrant to setup a virtual machine with the Cytoscape App Store installed. This version can serve as a guide for a full installation on a production environment, but also can be used for testing.

Requirements

1. Open a terminal and run the following to download the code:

# In lieu of git one can just download repo and unzip it
git clone https://github.com/cytoscape/appstore.git
cd appstore

2. In same terminal start Vagrant:

This step spins up a virtual machine and provisions it via the bootstrap.sh script in the repo.

NOTE: This can take several minutes to run

vagrant up

3. View site

In a browser visit http://localhost:8080

4. Where to go from here

Log into virtual machine

Run the following to log into the machine, become super user and navigate to the directory containing the Cytoscape App Store code/configuration

vagrant ssh
sudo -u root /bin/bash
cd /var/www/appstore

NOTE: To leave the root account in the virtual machine just type exit and to leave the virtual machine type exit again

Run manage.py to run tests/createsuperuser

Assuming one is root and in /var/www/appstore run the following to run unit tests on the app:

python manage.py test

Clone this wiki locally