Skip to content
Branch: master
Find file History

README.md

Introduction

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.

Prerequisites

You need to install the following tools in order to run this application:

Backend

Frontend

You can install these tools by following these steps:

  1. Install Node.js by using a downloaded binary or a package manager. You can also read this blog post: How to install Node.js and NPM

  2. Install Bower by using the following command:

    npm install -g bower
    
  3. 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

  1. You can run unit tests by using the following command:

    mvn clean test -P dev
    
  2. You can run integration tests by using the following command:

    mvn clean verify -P integration-test
    

Credits

  • Kyösti Herrala. The Gulp build script and its Maven integration are based on Kyösti's ideas.
You can’t perform that action at this time.