This is an example application of my blog posts:
This application has two parts:
- The first part is the REST API provided by the Spring powered web application.
- The second part is the single page application which uses AngularJS.
You need to install the following tools in order to run this application:
You can install these tools by following these steps:
Install Bower by using the following command:
npm install -g bower
Install Gulp by using the following command:
npm install -g gulp
Running the Application
After you have installed the tools that are required the build the application, you can run the application by invoking the following command on command prompt:
mvn jetty:run -P dev
Running the Tests
You can run unit tests by using the following command:
mvn clean test -P dev
You can run integration tests by using the following command:
mvn clean verify -P integration-test
- Kyösti Herrala. The Gulp build script and its Maven integration are based on Kyösti's ideas.