This is a Maven project with the ECOMP Portal front-end files for public release, containing font files, image files and other static files. This project uses Maven to copy in ("overlay") the contents of the ECOMP Portal FE common files at package time.
Use Apache Maven to build and package this collection of files using Bower, Grunt and NPM.
Release notes for all ECOMP Portal Open Source specific files, including front-end files, are tracked in file ecomp-portal-BE-os/README.md
TODO: These notes are somewhat outdated.
npm install -g bower
NOTE: mac/linux users should run the following command with sudo
npm install -g grunt-cli
NOTE: mac/linux users should run the following command with sudo
_NOTE: some npm modules inside the project does not support yet the new node.js 4.1.1, npm install command will probably throw an error. even so, everything should work, so no need to worry
npm install
to install all the server side dependenciesbower install
to install all the client side dependenciesthis project it supported by grunt task manager, below are the different run options ssp project can be run with different client configurations per environment, the environment is set byt the option --env=<environement name>
the following evironments are available:
mock - mock will activate the mock server and will return static data examples from predefined json files.
grunt serve --env=mock
--env
option accordingly to env options availableThere are 3 options available for tests:
grunt test
will run all re server and the client tests all togethergrunt test:client
will run only the client testsgrunt test:server
will run only the server testsExecute below commands
npm cache clean npm install npm install -g bower bower install grunt build --env=integ
COPY ${FE_DIR}/dist/public into ${BE_DIR}/public
deploy BE project onto tomcat and goto login page http://portal.openecomp.org:8989/ECOMPPORTAL/login.htm