BMP user interface is the web accessible graphical interface for the BMP plugin in ODL.
coming soon...
Grunt is used for build, test, and package automation.
Similar to Maven/java but for JS. It performs the build for the JS code, runs tests, and packages the code in a WAR file for deployment. You can also use
grunt serve
to quickly run the app locally on your machine.
To build from source you will need to install nodejs npm and grunt.
brew install npm
sudo apt-get update
sudo apt-get install -y npm
curl -sL https://rpm.nodesource.com/setup | bash -
yum install -y nodejs
Some external dependencies are required, install the following only once.
sudo gem install compass
Checkout the latest code using the following:
git clone [email protected]:CTAO-BMP/bmpUI.git
cd bmpUI
npm will install everything under the current working directory bmpUI. This is being ignored by git, so these files will not be committed back to the git repo.
Run sudo npm install -g grunt-cli
to install grunt CLI. This should install /usr/local/bin/grunt
Run npm install
to install all the dependencies under bmpUI. This will read the package.json file to install each dependency.
Install bower and it's dependencies using the following:
npm install -g bower
bower install
Run grunt
to build and test. The distribution will be under bmpUI/dist
If you get errors with tests, you can skip those by running grunt clean build
To build the WAR file for distribution and use with tomcat run grunt war
. The WAR file will be located under bmpUI/dist_war/
To run locally use grunt serve