During this demonstration a practical example of a web app will be developed. Its nature will be ludic (based on Sesame Street characters) but complex enough to put into spot the different features of Grails likewise as Domain Classes, Validators, GORM, Controllers, Services, Testing, etc. It will cover all the commands necessary from the beginning of the project to its end. The whole point will underline what Grails specific traits are over the other rapid development models in use at the moment. Attendants will have a wide glance of involved technologies capacities and roles and of the style of working together with GGTS 3.4 and Grails 2.3, All necessary program code to develop the application will be supplied in advance.
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
JavaCro'14 - Can You Tell Me How to Get to Sesame Street I wanna be a Grails star there – Fernando Redondo Ramírez
1. Can You tell me how to get to Sesame Street?
I wanna be a Grails rookie star there!
Fernando Redondo RamírezFernando Redondo Ramírez
@@pronoide_ferpronoide_fer
3. AboutAbout MeMe
• Entrepreneur and Business Manager at Pronoide
since 2003
• Java & Friends Trainer (JEE, Spring, Groovy, Maven, Jenkins, Sonar,
Weblogic, Jboss, Websphere, Disco dancing and so )
• Doing things with Java from 1999 on
• Computer Engineer
• Happily married and proud father of two children who• Happily married and proud father of two children who
love all Sesame Street stuff
4. AA briefbrief introductionintroduction
- Just another Grails speech (jags)?
- Yes indeed!, but:
• We’ll build it all from scratch
• We’ll leverage Grails 2.3
• We’re going to do a lot of tests
• We’ll deal with the whole app• We’ll deal with the whole app
code
• We won’t use Scaffolding ;)
• No plugins are necessary
5. AA briefbrief introductionintroduction
- But, What is Grails?
- Grails isn’t only another web
development framework, but it’s
a full web development platform:
• Embedded Servlet Container (Tomcat)
• Database Manager (H2 database)
• Scaffolding
• Dependency management through Gant• Dependency management through Gant
(and Maven)
• Application packaging (war)
• Test runner (unit, integration, functional)
(Junit, Spock)
• Uses Groovy language
• Extensible with plugins
• And much more!
7. HandsHands onon ((LaterLater at home)!at home)!
Before start, you have to…
1. Install Git in your computer
http://git-scm.com/book/en/Getting-Started-Installing-Git
2. Download Groovy/Grails Tool Suite 3.5
https://spring.io/tools/ggts/all
3. Start Groovy/Grails Tool Suite 3.5 (GGTS) and choose
or create a workspace (remember run it with a JDK)or create a workspace (remember run it with a JDK)
4. Download http://pronoide.com/downloads/javacro2014-grails2-
sesamestreet.zip and unzip it into workspace folder.
5. Pace yourself! It’s all quite straightforward…
8. Stage I: Create web application
i. Create webapp (create-app sesame-street)
note: it’s not necessary if you choose the Git way. (see
appendix at the end of this)
9. Stage II: Create domain
ii. Create the domain classes (create-domain-class
sesamestreet.Muppet)
10. Stage II: Create domain
iii. Define properties, constants, constraints and mappings
11. Stage II: Create domain
iv. Let’s complete the unit test (Spock’s way)
30. We'reWe're done!done!
I wish I had had this app 4 years ago
for entertaining the kids… But at
the present time, a new period
begins at home: Superheroes and
fairies, but that remains for my next
year JavaCro talk…year JavaCro talk…
32. ApendixApendix:: HandsHands onon ((LaterLater at home)!at home)!
Navigate along the proyect code with git presenter
1. Install jruby or ruby
http://jruby.org/getting-started
https://www.ruby-lang.org/en/installation/
2. Install git presenter (gem install git_presenter)
3. When the code is ready use the "git-presenter init" command
to initialize
4. Once it is initialized you can start the presentation with "git-
presenter start"presenter start"
5. Then use the following commands to navigate the presentation
• next/n: move to the next slide (commit)
• back/b: move to the back slide (commit)
• end/e: move to the end of presentation
• start/s: move to the start of presentation
• list/l : list slides in presentation
• help/h: display this message
33. ApendixApendix:: Stage I: Create web application
i. Import webapp (File/Import/Git/Proyect from Git)
note: it’s compulsory if you choose the git way