| [11093] | 1 | TODO: installation and setup and howto develop instructions for someone whos never used itinstallation paragraph for local server |
|---|
| [11092] | 2 | explain ./manage |
|---|
| 3 | define what functionality is in which files |
|---|
| 4 | |
|---|
| 5 | add refresh status of nodes |
|---|
| 6 | remove passwords from url -> put in SESSION variable |
|---|
| 7 | choose which node to start domain manager on |
|---|
| 8 | pick the nodeBooter from dev/nodes/ |
|---|
| [11093] | 9 | load connect to node in console view |
|---|
| [11067] | 10 | ############# |
|---|
| 11 | Django setup |
|---|
| 12 | ############# |
|---|
| 13 | There are 4 main applications in the project: LoginUser, WebDash, HtmlPages, and DomainMan |
|---|
| 14 | LoginUser: handles logging in the user, redirecting pages, and user directory/accounts/waveforms |
|---|
| 15 | WebDash: controls the waveforms |
|---|
| 16 | HtmlPages: the main pages for the interface |
|---|
| 17 | DomainMan: Connecting to nodes and starting nodeBooter/naming service |
|---|
| 18 | |
|---|
| 19 | ######## |
|---|
| 20 | Settings |
|---|
| 21 | ######## |
|---|
| 22 | Once the project is checked out from the repository, there is no need to change between the settings for the webserver and working directory |
|---|
| 23 | This is handled in the apache/django.wsgi file: the webserver looks at settingsWeb.py |
|---|
| 24 | and the working directory uses the default settings.py when using the development server (python manage.py runserver) |
|---|
| 25 | |
|---|
| 26 | ############ |
|---|
| 27 | Static files |
|---|
| 28 | ############ |
|---|
| 29 | After changing the css or javascript files, you must run (python manage.py collectstatic) to update the main /static folder. |
|---|
| 30 | Make sure that the directorys where the original file is located is also listed in the STATICFILES_DIRS of the settings file. |
|---|
| 31 | |
|---|
| 32 | Ossie interface layout |
|---|
| 33 | ====================== |
|---|
| 34 | Four main frames are separated into four div tags: the directory, the main frame, the workspace, and the active applications. |
|---|
| 35 | #Directory: lists the waveforms of the loaded node, |
|---|
| 36 | #Main frame: contains the status of the nodes in a grid or map form |
|---|
| 37 | #Apps: Lists the waveforms that are running |
|---|
| 38 | #Workspace: contains the information about the current waveform |
|---|
| 39 | |
|---|
| 40 | ######### |
|---|
| 41 | LoginUser |
|---|
| 42 | ######### |
|---|
| 43 | The login runs on SQLite database file found in the main directory saved as cornetApps.db |
|---|
| 44 | This is separate from the CORNET user database. |
|---|
| 45 | It runs through the given Django login module (django.contrib.auth.views.login). |
|---|
| 46 | |
|---|
| 47 | ######### |
|---|
| 48 | DomainMan |
|---|
| 49 | ######### |
|---|
| 50 | Connects to the ip's of the nodes: 192.168.1.xx. |
|---|
| 51 | .xx starts at 11 on floor 1 and increments by 1. Each floor has 12 nodes: |
|---|
| 52 | Floor 1: .11 - .22 |
|---|
| 53 | Floor 2: .23 - .34 |
|---|
| 54 | Floor 3: .35 - .46 |
|---|
| 55 | Floor 4: .47 - .58 |
|---|
| 56 | |
|---|
| 57 | When connecting through the server, see http://cornet.wireless.vt.edu/trac/wiki/CORNET/HowToUseCORNET |
|---|
| 58 | |
|---|
| 59 | ################## |
|---|
| 60 | Using the interface |
|---|
| 61 | ################### |
|---|
| 62 | |
|---|
| 63 | When clicking on the node in the interface, it calls the loadNode(ip) javascript method, |
|---|
| 64 | which in turn loads the waveform through WebDash into the #directory div/frame. |
|---|
| 65 | |
|---|
| 66 | In the directory column/frame, the home icon brings the user to the account page where you can view the user's available waveforms. |
|---|
| 67 | the eject icon logs the user out of the interface. |
|---|