AngularJs
Brief
We shall start to add AngularJs to html to power ajax. Spring 4.2 has support for ajax implementation. Spring also provides support for MVC archiecture where it helps to render view as well. We may not require to render dynamic views from server, as angularjs engine will take care of that through SPA design and ajax based dynamic content fetch from backend services over REST API interface.
Inspiration from spring website
Setup
TODO
- download library
- directory structure where to copy these libraries
Modify WebSecurityConfig.java
TODO
Adding Controller
TODO
Generate, Consolidate & Minimize
TODO: This has more to do with gradle integration with these tools. The reference above shares a utility, wro4j integration with maven to perform pretty much the minimization, consolidation. Lets figure out integration of gradle with maven Or corresponding procedure for gradle.
Javascripts
TODO: Use of coffee scripts. Lint to validate script syntax. Gradle plugin for minimizing Js
CSS
TODO: Use of sass tools like less, compass Gradle Plugin Compass
HTML
TODO: use of tools like Jade for generating complex html Gradle plugin for jade
Watch out for this space for further updates.. 5-Aug-2015 (last updated)