• Like
Indic threads pune12-using play2.0 for building an insurance website
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

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

  • 394 views
Published

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

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

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
394
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Using Play! 2.0 For Building An Insurance Website Mushtaq Ahmed Shripad Agashe ThoughtWorks
  • 2. Introduction to Play!
  • 3. Brief Demo
  • 4. Insurance portal
  • 5. Project Structure
  • 6. App and test
  • 7. Builds functional:test integration:test
  • 8. Evolution and i18n
  • 9. Routes and PRG POST /logout controllers.AuthenticationController.logout GET /loggedOut/:role controllers.AuthenticationController.loggedOut(role: String) conf/routes app/controllers/AuthenticationController.java
  • 10. Controllers app/controllers/RegistrationController.java
  • 11. Forms app/controllers/forms/RegistrationForm.java
  • 12. Templates app/views/email/forgot_username_email.scala.html
  • 13. Layout app/views/email/email_main.scala.html
  • 14. SOAP Request app/views/ServiceTemplate/GetEntityDetails.scala.xml
  • 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. Less lessEntryPoints <<= baseDirectory(_ / "app" / "assets" / "stylesheets" * "*.less")
  • 17. EBeans
  • 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. Orthogonal Concerns
  • 20. Global
  • 21. i18n
  • 22. Form test
  • 23. Controller test
  • 24. FakeApplicaion
  • 25. Template test
  • 26. FakeContext
  • 27. Play2.1
  • 28. Thanks