Using Play! 2.0 For Building An Insurance Website Mushtaq Ahmed Shripad Agashe ThoughtWorks
Introduction to Play!
Brief Demo
Insurance portal
Project Structure
App and test
Builds          functional:test         integration:test
Evolution and i18n
Routes and PRG  POST     /logout                controllers.AuthenticationController.logout  GET     /loggedOut/:role     ...
Controllers  app/controllers/RegistrationController.java
Forms  app/controllers/forms/RegistrationForm.java
Templates  app/views/email/forgot_username_email.scala.html
Layout         app/views/email/email_main.scala.html
SOAP Request        app/views/ServiceTemplate/GetEntityDetails.scala.xml
Javascript routes public static Result javascriptRoutes() {   response().setContentType("text/javascript");   return ok(  ...
Less lessEntryPoints <<= baseDirectory(_ / "app" / "assets" / "stylesheets" * "*.less")
EBeans
Static pages#routes for static page contentGET /static/aboutsite/:fname controllers.StaticLayout.getAboutSitePage(rootFold...
Orthogonal Concerns
Global
i18n
Form test
Controller test
FakeApplicaion
Template test
FakeContext
Play2.1
Thanks
Upcoming SlideShare
Loading in...5
×

Indic threads pune12-using play2.0 for building an insurance website

498

Published on

The 7th Annual IndicThreads Pune Conference was held on 14-15 December 2012. http://pune12.indicthreads.com/

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
498
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Indic threads pune12-using play2.0 for building an insurance website

  1. 1. Using Play! 2.0 For Building An Insurance Website Mushtaq Ahmed Shripad Agashe ThoughtWorks
  2. 2. Introduction to Play!
  3. 3. Brief Demo
  4. 4. Insurance portal
  5. 5. Project Structure
  6. 6. App and test
  7. 7. Builds functional:test integration:test
  8. 8. Evolution and i18n
  9. 9. Routes and PRG POST /logout controllers.AuthenticationController.logout GET /loggedOut/:role controllers.AuthenticationController.loggedOut(role: String) conf/routes app/controllers/AuthenticationController.java
  10. 10. Controllers app/controllers/RegistrationController.java
  11. 11. Forms app/controllers/forms/RegistrationForm.java
  12. 12. Templates app/views/email/forgot_username_email.scala.html
  13. 13. Layout app/views/email/email_main.scala.html
  14. 14. SOAP Request app/views/ServiceTemplate/GetEntityDetails.scala.xml
  15. 15. Javascript routes public static Result javascriptRoutes() { response().setContentType("text/javascript"); return ok( Routes.javascriptRouter("jsRoutes", controllers.routes.javascript.Projects.add(), controllers.routes.javascript.Projects.delete(), controllers.routes.javascript.Projects.rename(), controllers.routes.javascript.Projects.addGroup() ) ); } newProject: (e) -> @el.removeClass("closed") jsRoutes.controllers.Projects.add().ajax
  16. 16. Less lessEntryPoints <<= baseDirectory(_ / "app" / "assets" / "stylesheets" * "*.less")
  17. 17. EBeans
  18. 18. Static pages#routes for static page contentGET /static/aboutsite/:fname controllers.StaticLayout.getAboutSitePage(rootFolder="aboutSiteContent",fname:String)GET /static/aboutus/:fname controllers.StaticLayout.getAboutUsPage(rootFolder = "aboutUsContent",fname:String)GET /static/faq/:fname controllers.StaticLayout.getFAQPage(rootFolder = "faqContent",fname:String)
  19. 19. Orthogonal Concerns
  20. 20. Global
  21. 21. i18n
  22. 22. Form test
  23. 23. Controller test
  24. 24. FakeApplicaion
  25. 25. Template test
  26. 26. FakeContext
  27. 27. Play2.1
  28. 28. Thanks
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×