/angular-rest-springsecurity

An example AngularJS Application that uses a Spring Security protected Jersey REST backend based on Hibernate/JPA

Primary LanguageJavaScriptApache License 2.0Apache-2.0

angular-rest-springsecurity

[Flattr this git repo](https://flattr.com/submit/auto?user_id=shoxrocks&url=http://sorst.net/github/angular-rest-springsecurity&title=AngularJS REST Spring Security Example&language=&tags=github&category=software)

[Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=W9NAXW8YAZ4D6&item_name=Angular REST SpringSecurity Example Donation&currency_code=EUR)

An example AngularJS Application that uses a Spring Security protected Jersey REST backend based on Hibernate/JPA.

About

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 news entries 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.

Technologies

Running

Make sure Maven >= 2.2.1 is installed on your system. Go into the project dir and type mvn jetty:run, then point your browser to http://localhost:8080.

License

The Apache Software License, Version 2.0