The front page / home page for IOOS National Glider DAC
-
Download and install nodeJS (should come with npm)
-
Install bower
npm install -g bower
You may need to run as sudo
-
Install grunt
npm install -g grunt-cli
-
Use node to build the project dependencies
npm install
-
Use bower to install the UI depencies
bower install
-
Setup a python virtualenv for this project
mkvirtualenv gliders
-
Install the python dependencies
pip install -r requirements/standalone.txt
-
If you're actively developing and debugging the project install the dev tools
pip install -r requirements/dev.txt
-
Compile the javascript files
grunt
-
Run the project
python app.py
Most of this project is static files. The initial pages are loaded as a jinja template so flask can do dependency injection and asset management.
Pages link to CSS and Javascript files through the "Assets.json" file which tells grunt where assets are located and how to compile them.