170 likes | 334 Views
Flex on Grails. Aniket Shaligram. Talentica Software. Flex for RIA. Why RIA? Better User experience No Browser Compatibility Issues Client-server architecture with clear separation of concerns Why Flex? Mature Better penetration. Grails as RAD. Why RAD? Scaffolding
E N D
Flex on Grails Aniket Shaligram Talentica Software
Flex for RIA • Why RIA? • Better User experience • No Browser Compatibility Issues • Client-server architecture with clear separation of concerns • Why Flex? • Mature • Better penetration
Grails as RAD • Why RAD? • Scaffolding • Convention over Configuration • Why Grails? • Java based
Sample App - teps • Grails Project Creation • Plugin installation • Generating domain class model • Edit generated domain classes • Modify config files to enable security • Generate Flex code • Start server and navigate
Scaffolding • Grails Project Creation • grails create-app gsf-test • Plugin installation • cd gfs-test • grails install-plugin flex-scaffold • grails stark-security-install-full
Generating domain class model • grails create-domain-class customer • grails create-domain-class company • grails create-domain-class phone • grails create-domain-class address
Edit generated domain classes • Company • Customer • Address • Phone
Add to Config.groovy • gfs.security = true • Edit StarkSecurityConfig.groovy • '/': Role.ALL_ROLES, to '/**': Role.ALL_ROLES, • Edit BootStrap.groovy
CRUD Generation • grails generate-all-flex company • grails generate-all-flex customer • Flex compilation • grails flex-tasks • Start app-server • grails run-app • go to http://localhost:8080/gfs-test
Does it really work? • Learning curve for Flex, Grails (Groovy, GORM), Generated code – Flex • Understand, Maintain Scaffolding plug-in • Separate frontend, backend teams • Costs – Flash Builder license
Front end Design • Design of Generated frontend code
Connectivity Options • BlazeDS – Flex Plugin • GraniteDS - GraniteDS Plugin • Webservices (REST, SOAP) - CXF Plugin
Security options • Spring Security • Apache Shiro
Deployment Options • Desktop : Adobe Air • Gaelyk app on Google App Engine • Grails app on Google App Engine • Grails War on standalone container
IDE • Flash Builder • Springsource plugin for Grails