To build the project you need to have installed on your machine NodeJS, NPM, Bower, Grunt, Ruby and SASS.
npm install -g bower
npm install -g grunt-cli
Run commands from project root directory.
npm install
bower install
Generates project artifacts.
grunt build
Generates project deliverable artifact. builds the project (grunt build) and create dop.tar.gz file which contains the project artifacts.
grunt package
To have and usable application is needed to connect to back end server. For that we use Apache2. All commands in this page are for Ubuntu 14.10
sudo apt-get install apache2
sudo a2enmod proxy_http
To have the ability to develop Front End without copying files to Apache2 directory every time you change something, we have to configure DocumentRoot to point to project root directory.
Edit 000-default.conf
sudo nano /etc/apache2/sites-available/000-default.conf
Change DocumentRoot and make sure Apache has rights to read the target folder.
DocumentRoot /path/to/project
Also add those lines to the configuration just bellow DocumentRoot
<Directory />
Require all granted
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>
Configure proxy to forward rest request to Back End servlet
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /rest http://127.0.0.1:8080/rest
ProxyPassReverse /rest http://127.0.0.1:8080/rest
You should be able to run the whole application. Make sure to change Back End address to the one you are using, if not localhost.