An example AngularJS Application that uses a Spring Security protected Jersey REST backend based on Hibernate/JPA.
The projects aim is to demonstrate the Java implementation of a simple REST interface which is used by an AngularJS application. The following topics are covered:
- A relational database that holds blog posts and users.
- A REST service that exposes the data in the database.
- Authentication and authorization against the REST service.
- A Simple AngularJS application that allows users to view or edit news entries depending on their role.
- A responsive design.
This project is just meant to be a demonstration, therefore it is neither well documented nor well tested. Use it to learn about the technologies used, but do not use it for productive applications.
Any feedback is welcome, and I will incorporate useful pull requests.
Make sure Java >= 8 and Maven >= 3.0 is installed on your system. Go into the project dir and type mvn jetty:run
, then point your browser to http://localhost:8080
.