Basic Example and best practice of AngularJS Java EE web app

angularjs

Solution

Since this is a very general question I'll answer it as such. There was a talk at jFall 2012 which demoed a very basic application with Java EE 6 and AngularJS which can be found here: https://github.com/teunh/jfall2012

I've been working on a school project which uses AngularJS as a frontend - JAX-RS as the restful interface and the basic backend logic in beans and database persistence with hibernate. I won’t be able to open source this project at the moment since it’s still a work in progress.

My experience and my message to you is that it's very easy to build a Java EE backend with an AngularJS frontend if you keep a restful interface in mind.

Problem

If anyone has used AngularJS in a Java EE web app, then we will be grateful if you can provide any pointers/ examples of it. What are the best practices, what is the ideal structure, design etc. Any weblinks also will be helpful.

Original source