Client-side MVC frameworks like AngularJS are getting more popular over time. They represent a big architectural change to what web developers are used to: moving from server-side MVC to a browser based one.
In this talk I will speak about how Grails can fit with a single-page architecture and discuss the pros and cons of developing that kind of applications.
I will also do a live demo of a sample web application using AngularJS and Grails.
2. About me
• Passionate software developer.
• Founded Salenda in 2005.
• Co-founded Escuela de Groovy in 2009.
• Groovy/Grails lover since 2007.
• Working now at Odobo as Web Architect.
3. • HTML5 games platform for:
• Game developers.
• Casinos.
• We are hiring!
• http://bit.ly/odobo-grails-job
10. Other problems
• It’s tricky to decouple the view layer to
render views for different devices.
• It’s difficult to do frequent deployments.
• It’s hard to scale development teams.
13. • A webapp where you can navigate
without any page refresh.
• Ajax/REST is used to communicate with
the server.
• The MVC is in the browser, written in
Javascript.
19. Grails is evolving
• It already happened with Hibernate.
• GORM is now decoupled from relational
DB’s.
• It will happen with Spring MVC as well.
20. • Faster.
• Better user
experience.
Graceful
•degradation?
Communication
•failures?
• Ops-friendly. •Offline usage?
• Easier for
Effort
•duplication?
the developer.
21. Other benefits
• You get ready to expose a public API.
• Each layer can be sized, scaled and
redeployed independently.
• It allows frequent UI updates.
• It’s easier to create mobile apps.
• You can organize/scale your teams better.
• Development efforts in parallel.
23. • Build an API.
• Use Grails 2.3 REST capabilities.
• Define your backend: GORM? Other web
services?
• Make it a robust, tested, powerful black
box for the front end.