Simple Spring application with AngularJS web frontend. The application uses:
- An embedded H2 database which is initialized during deployment.
- JPA2 with Hibernate as persistence layer.
- Spring Data for domain access.
- Spring for dependency injection and transaction handling.
- Jersey as JAX-RS implementation for REST services.
- AngularJS as browser based javascript web framework.
The application build is done via Gradle with a simple
gradle build
After the build ends successfully there should be an angular.war
in the build/libs
directory.
This application was tested on the Apache Tomcat 7.0.50. Therefor you need to download and install the
Tomcat. Than start Tomcat in debug mode with the script
TOMCAT_HOME/bin/catalina.sh jpda run
and copy the angular.war
into the directory TOMCAT_HOME/webapps/
.
Open a web browser and use the application with the url http://127.0.0.1:8080/angular/app/example.html
.
Anymore the REST service could be invoked with a HTTP GET request on the URL http://127.0.0.1:8080/angular/rest/grocery
.
The repository is licensed under the GNU Lesser General Public License. See LICENSE for the full license text.