OOI UI Source Code
Preliminary requirements in order to run the UI.
-
Create new virtual environment, this assumes you have virtualenvwrapper (I recommend virtualenvburrito):
mkvirtualenv newname
Activate or switch virtual environment:
workon newname(othername)
-
Pip install requirements in requirements.txt:
/ooi-ui$ pip install -r requirements.txt
- Install NPM Node Package Manager
- To install the dependent node packages, in the root of the project run
npm install -g grunt-cli
npm install -g bower
npm install
- Install bower components:
bower install
grunt
python app.py -s
Remember to modify WSGI.py and app.ini to your specific installation environment
sudo mkdir /tmp/ooi-ui
sudo chown ooiui:nginx /tmp/ooi-ui
sudo chmod 755 /tmp/ooi-ui
Modify the nginx config file using the example nginx.conf
sudo service nginx restart
Launch as a background process
uwsgi --ini app.ini &