Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Play framework 2

The JOIN Event presentation about Play Framework 2.

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to comment

Play framework 2

  1. 1. Play Framework 2 Yannick De Turck 1 16/10/2014
  2. 2. Play, just another web framework?  Based on a lightweight, stateless and web-friendly architecture 2  High scalability  Develop in Scala and/or Java  Developer friendly - Focus on productivity - Only need a texteditor and browser - Hit refresh workflow - Type safety  Open Source  Inspired on Rails and Django
  3. 3. 3 Who uses Play?
  4. 4. 4 MVC architecture  Model (Java and/or Scala)  Controller (Java and/or Scala)  View (templates, HTML and Scala)  Routes - Mapping url paths and Controllers
  5. 5. 5 Type Safety  Majority of code gets compiled including: - Templates - Assets (Coffeescript, LESS)  Detect errors as early as possible
  6. 6. Conventions of configurations 6  Vast structure  A lot of functionalities come with the core bundle
  7. 7. 7 build.sbt
  8. 8. 8 app/models
  9. 9. 9 app/controllers
  10. 10. 10 app/views
  11. 11. 11 conf/application.config
  12. 12. 12 conf/messages
  13. 13. 13 conf/routes
  14. 14. 14 Hot reloading  Start server once  Make code change  Hit F5 in browser  Change is live!
  15. 15. Errors displayed in browser  Compilation and runtime errors are displayed in browser 15  Go fix and hit F5!
  16. 16. 16 Database evolutions  Track your database schema changes  Robust way to update PROD schema  Two sections - Ups (create, insert,…) - Downs (drop, delete,…)  Number files (1.sql, 2.sql,…)  Automatically or manually executed
  17. 17. 17 Setting up Play  Download at https://www.playframework.com/download  Add to PATH  Verify set up correctly via activator -help
  18. 18. 18 Creating a new project  Via terminal/console: - activator new - Choose template/seed - Pick a name
  19. 19. 19 Creating a new project  Via UI: - activator ui - Pick seed - Choose location for the project
  20. 20. 20 Creating a new project  Generate project files for your favourite IDE - IntelliJ: activator idea - Eclipse: activator eclipse  Open the project in your favourite IDE
  21. 21. 21 Documentation  https://www.playframework.com/documentation
  22. 22. 22 Follow tutorials
  23. 23. 23 Personal experience  Refreshing and very pleasant to work with  Go with Scala instead of Java  Hot reloading is awesome  Helpful community  Actively being worked on
  24. 24. 24 Q&A
  25. 25. 25 Useful links  https://www.playframework.com  https://groups.google.com/forum/#!forum/play-framework  Presentation available on SlideShare: http://goo.gl/OK65BX

×