Have it JAR way
This is a small project for getting up to speed when creating a new web application from scratch using various
technologies. It consists of two modules; web-app
and integration-tests
.
The following is a listing of the major technologies used in order og relative significance.
There are two ways of building and running the web application, both of which are listed below.
Create an env.json
file in the web-app
module based on the following example env.json
file:
{
"env": "dev",
"compressed": false
}
Edit the file accordingly if need be.
-
Firstly, install gulp so it is available from the command line:
npm install -g gulp
-
Secondly, install all other dependencies:
npm install
from theweb-app
module
- Build the project:
mvn clean install
from theweb-app
sub-module. - Deploy into a servlet container like Apache Tomcat
- Build and start Jetty:
gradle jettyRunWar
from theweb-app
module
To run the integration tests run mvn verify
from the integration-tests
sub-module.