Short Introduction to the Ideas Behind Bowler

1,902 views
1,852 views

Published on

A short deck of slides used to introduce some of the core ideas behind the Bowler web framework: http://bowlerframework.org

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,902
On SlideShare
0
From Embeds
0
Number of Embeds
838
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Short Introduction to the Ideas Behind Bowler

  1. 1. The Bowler Web FrameworkThursday, 14 April 2011
  2. 2. InspirationThursday, 14 April 2011
  3. 3. The Bowler Stack Scalatra + Scalate + Lift JSON = BowlerThursday, 14 April 2011
  4. 4. Principles • RESTful: respect HTTP • Render Resources, not Views • Composability (with sensible defaults)Thursday, 14 April 2011
  5. 5. Routes • Routes are HTTP verbs (get, post, put, delete) • Can have named parameters, wildcards, regexThursday, 14 April 2011
  6. 6. Rendering Extend Renderable trait render(myModelObject1, myModelObject2) or.. [{"id":1,"name":"AWidget","yearMade": 2011,"description":"hello world"}]Thursday, 14 April 2011
  7. 7. • A RenderStrategy decides the ViewRenderer to use • DefaultRenderStrategy decides based on HTTP Accept HeaderThursday, 14 April 2011
  8. 8. Layout Resource ViewThursday, 14 April 2011
  9. 9. From HTTP to Scala • GET & DELETE cannot create new complex objects, only lookup • POST & PUT can create any object ..all about respecting HTTP!Thursday, 14 April 2011
  10. 10. Four Key Traits define your routes map from HTTP validation renderingThursday, 14 April 2011
  11. 11. ..there’s a lot more! • http://bowlerframework.org • http://www.github.com/wfaler/Bowler • @bowlerweb on TwitterThursday, 14 April 2011

×