Scalatra is a free and open source
web application framework written in
Scala. It is a port of the
Sinatra framework written in
Ruby
A ruby is a pinkish red to blood-red colored gemstone, a variety of the mineral corundum (aluminium oxide). Ruby is one of the most popular traditional jewelry gems and is very durable. Other varieties of gem-quality corundum are called sapp ...
. Scalatra is an alternative to the
Lift
Lift or LIFT may refer to:
Physical devices
* Elevator, or lift, a device used for raising and lowering people or goods
** Paternoster lift, a type of lift using a continuous chain of cars which do not stop
** Patient lift, or Hoyer lift, mobile ...
,
Play!
Play! is a pavilion, which was scheduled to open at Epcot by the spring of 2023. It will be built in the former Wonders of Life pavilion and will be themed like an interactive city in which guests will be able to interact with their favorite Disn ...
, and
Unfiltered frameworks.
Scalatra is an example of a
microframework A microframework is a term used to refer to minimalistic web application frameworks. It is contrasted with full-stack frameworks.
It lacks most of the functionality which is common to expect in a full-fledged web application framework, such as:
* ...
, a web software development framework which attempts to be as minimal as possible.
A full Scalatra application can be written in very few lines of code:
package org.example.app
import org.scalatra._
class MyScalatraFilter extends ScalatraFilter
From this tiny
domain-specific language, Scalatra can be expanded into a minimal but full-featured
model-view-controller web framework. For example, additional libraries can be attached in order to provide
templating,
object-relational mapping, and
unit testing
In computer programming, unit testing is a software testing method by which individual units of source code—sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures&m ...
or
behaviour driven development support.
Software built with Scalatra
*
LinkedIn
LinkedIn () is an American business and employment-oriented online service that operates via websites and mobile apps. Launched on May 5, 2003, the platform is primarily used for professional networking and career development, and allows job s ...
used Scalatra to power its now-defunct Signal
API.
*Parts of ''
The Guardian
''The Guardian'' is a British daily newspaper
A newspaper is a periodical publication containing written information about current events and is often typed in black ink with a white or gray background.
Newspapers can cover a wide ...
s API services are built in Scalatra.
*http://gov.uk has built its API systems using Scalatra.
References
External links
*
Scalatra's GitHub repositoryInfoQ article on Scalatra
Java platform
Free software programmed in Scala
Software using the BSD license
Web frameworks
{{web-software-stub