barrymun / cs4098

1 stars 0 forks source link
c css dinto html javascript owl python

Overwatch

Status: build passing

Group Members:

Aaron Joyce
Bryan Quirke
Erik Eviston
Jessa Pajarito
Neil Barry-Murphy




Setup Guide

Using the Flask Application

Activate the virtual environment (Python 2.7 required):

source venv/bin/activate

Run the setup script (First time setup following initial clone - required only once):

bash setup.sh

Restart mongo:

sudo service mongod restart

Run the flask application:

python app.py

(If The Flask Application Fails)
Install necessary requirements with root permissions and restart mongo:

sudo pip install -r requirements.txt

sudo service mongod restart

Now, re-start the application:

python app.py

Navigate to the homepage: http://127.0.0.1:5000/

Logging

Open another terminal in the same directory and execute the following:
Activate the virtual environment:

source venv/bin/activate

Once the app has been started on the previous terminal: - (PML and DINTO Log-file Generation)

tail -f info.log




DDI System Testing Instructions

In-Depth Testing

(Testing methods for all new required features outlined below)

Mock DDI Characterisation Data

Identify drugs in PML

Report un-named PML construct

Report PML construct name-clash

Identify Parallel DDIs

PML-TX Save PML to File

PML-TX Reorder Sequence

PML-TX Serialise Branch (Naive)

PML-TX Serialize Branch (Two-Way)

PML-TX Remove Selections (NOT WORKING)

PML-TX Unroll Iteration

PML-TX Parallelise Sequence




Deactivating the Virtual Environment

When finished with analysis of the system, execute:

deactivate

This will disable the virtual environment.




DINTO system (No longer part of the testing branch)

In-Depth Testing

Please note that all explanations are accompanied by images.
See the documentation/testing/testing-process section of this repo for more information.

Successful Tests

Tests To Handle Incorrect Input




Additional System Analysis

Using the Mongo Database

Installation for Ubuntu 16.04 will be handled by the setup script.
Open a new terminal and execute the following:

Log In to the Mongo shell:

mongo

Switch to the project database:

use app

List all currently available collections:
(Should be empty prior to launching the flask app)

db.getCollectionNames()

List all pml files in the project, for example:

db.dist.files.find()

List all pml files that you have selected as a user:

db.dist.selected.find()

List all pml files that have been analysed:

db.dist.analysis.find()