Over a million developers have joined DZone.

Announcing Bowler: A RESTful Scala Web Framework

· Java Zone

Discover how AppDynamics steps in to upgrade your performance game and prevent your enterprise from these top 10 Java performance problems, brought to you in partnership with AppDynamics.

The reason for my lack of sleep and blogging in the last 6 weeks is ready for an initial release: http://bowlerframework.org/

Bowler is a RESTful Scala web framework built on top of Scalatra and Scalate. Details, examples, sbt quickstart and documentation are all available behind the link.

A lot of the ideas in the framework have been discussed on this blog previously, for instance: I’ve tried to keep the “Resource View” (resource being rendered in REST lingo) as separate as possible from concerns such as layout.

The practical consequence of this is that you get a JSON API “for free” if you follow the pattern set out in the framework: getting JSON output instead of HTML (or whatever output you are outputting) is a simple matter of setting the HTTP “accept” header to “application/json”. Considering we are moving towards a more JavaScript driven, RIA future where purely server-side generated UI is no longer feasible nor desirable, this is certainly a feature that is useful.

To kind of give a quick indication of the framework, I would best explain it as having tried to get the approachability and productivity of Rails and Play Framework, with UI re-use and composability somewhere in between Apache Wicket Components/Panels and Lift Snippets, while adding in my own little flavour and ideas. 

Also, testability is something I’ve taken seriously, so any Bowler app that is written well should be very easily testable entirely without a container.

This is a “0.1” release, so it will more than likely contain bugs and gaps in thinking. Though I’m hoping community feedback and contributions will fix that soon enough!

So go check it out, docs and examples are hopefully quite good for a 0.1 release by Open Source standards.

The Java Zone is brought to you in partnership with AppDynamics. AppDynamics helps you gain the fundamentals behind application performance, and implement best practices so you can proactively analyze and act on performance problems as they arise, and more specifically with your Java applications. Start a Free Trial.

Topics:

Published at DZone with permission of Wille Faler, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}