Skip to content

1. Installation and Setup

Brice Nichols edited this page Mar 3, 2016 · 9 revisions

To get the web application up and running:

Configure Server and Run Web Interface

The server is the machine on which you'll be hosting the dashboard part of queue. This is the web portal where users control and manage model runs. To set up the server machine

  • clone the queue repository
  • download and install [Anaconda] (https://www.continuum.io/downloads) 2.7 if you don't already have it
  • pip install:
    • Pyro4 (for socket communications between the server and machines running models, which we call "nodes")
    • django
  • Start Pyro nameserver in a new console with: pyro4-ns.exe -n 0.0.0.0
    • this opens up a channel of communication so the web app can talk with nodes. A nameserver must be started before either the web app or a node is run.
    • note that setting argument -n to 0.0.0.0 allows all machines on the local network to access the nameserver. Using this address allows any local node to use this nameserver.
  • in a new console, cd to "queue" directory and run python manage.py runserver 0.0.0.0:8000. This will host the app on the local network. Anyone with access to the local network can access the application from a browser at [server_machine_name]:8000 (e.g., 'psrc3827:8000')
  • Other machines on the network can access the app page through http://[machine_name]:8000/, where [machine_name] is the PC name (e.g., psrc3827).

Your web app should be now running! It won't do much until you turn on worker node machines across your network to process model runs. See the [following wiki page] (https://github.com/psrc/queue/wiki/2.-Setting-up-worker-nodes) to see how to do this.

Clone this wiki locally