1 This is the README.txt file for sla-dashboard application.
\r
3 sla-dashboard application is composed by the following directories:
\r
4 * sladashboard: the app related to the application itself. The settings
\r
5 file maybe need to be modified: read below.
\r
6 * slagui: the sla dashboard GUI project.
\r
7 * slaclient: this project contains all the code needed to connect to
\r
8 SLA Manager REST interface, and the conversion from xml/json to python
\r
10 * samples: this directory contains sample files to load in the SLA Manager for
\r
12 * bin: some useful scripts
\r
15 Software requirements
\r
16 ---------------------
\r
17 Python version: 2.7.x
\r
19 The required python packages are listed in requirements.txt
\r
21 Installing the requirements inside a virtualenv is recommended.
\r
23 SLA Manager (java backend) needs to be running in order to use the dashboard.
\r
27 (to be corrected/completed)
\r
30 # Install virtualenv
\r
32 $ pip install virtualenv
\r
36 # Create virtualenv.
\r
37 # E.g.: VIRTUALENVS_DIR=~/virtualenvs
\r
39 $ virtualenv $VIRTUALENVS_DIR/sla-dashboard
\r
42 # Activate virtualenv
\r
44 $ . $VIRTUALENVS_DIR/sla-dashboard/bin/activate
\r
47 # Change to application dir and install requirements
\r
50 $ pip install -r requirements.txt
\r
53 # Create needed tables for sessions, admin, etc
\r
55 $ ./manage.py syncdb
\r
60 * sladashboard/settings.py:
\r
61 - SLA_MANAGER_URL : The URL of the SLA Manager REST interface.
\r
62 - DEBUG: Please, set this to FALSE in production
\r
64 * sladashboard/urls.py:
\r
65 - dashboard root url: the slagui project is accessed by default
\r
66 in $server:$port/slagui. Change "slagui" with the desired path.
\r
71 NOTE: this steps are not suitable in production mode.
\r
74 # Activate virtualenv
\r
76 $ . $VIRTUALENVS_DIR/sla-dashboard/bin/activate
\r
79 # Cd to application dir
\r
84 # Start server listing in port 8000 (change port as desired)
\r
86 $ ./manage.py runserver 0.0.0.0:8000
\r
91 curl http://localhost:8000/slagui