AngularJS based front end with Drop Wizard backend. JSession based auth on REST APIs. Good starting point if you are trying to move on from here. PLEASE, if you develop additional features on this stuff which is general purpose please send a pull request!
I've been doing spring based dev for a long time. When I ran across DropWizard I really like the level of functionality provided. I've been playing with AngularJS for a few months, and really like it as well. So this is my attempt to meld the two.
- git clone https://github.com/windbender/angular-dropwizard.git
- mvn package
- java -jar target/angular-dropwizard.jar server ./serverconfig.yml
- visit http://localhost:8080/ with a browser.
- login using ANY username and the password "secret" ( see DummyPersonDAO.java )
- In case it's not obvious, this should be served via HTTPS in production since the logins are done via POST of JSON data.
- Use of ConfiguredAssetsBundle so that the javascript,css, and html can be changed and reloaded without rebuilding the java server.
- If you use eclipse of some other system which can replace running classes, then you can often change java code without a restart.
- dropwizard-auth is used to do auth, but with some mods.
- add some healthchecks?
- update to bootstrap 3
- if needed update to latest angular and angular sub projects
- add gravatar to "logged in" upper right: https://en.gravatar.com/site/implement/images/