The Play Framework makes it easy to build web applications on the JVM using the Model-View-Controller pattern. It's bundles Hibernate as ORM, Netty as web server, has comprehensive test tooling (using Selenium for integration tests) and provides a templating system that uses Groovy.
Version 2 of the Play Framework was a complete rewrite and is written in Scala (contrary to version 1 which is written in Java). Porting an application over from version 1 to version 2 takes considerable effort, and since version 2 is written in Scala it makes less sense to do so for applications built with Play version 1 that are written in Java.
This repository contains a fork of the Play Framework version 1, named Play1. Here several organizations that have Play1 applications running collaborate in maintaining this framework.
Getting started with Play1 is easy. With a few lines of shell script you have a running instance:
export PLAY_VERSION=1.6.0
wget https://github.com/playframework/play1/releases/download/$PLAY_VERSION/play-$PLAY_VERSION.zip -P /tmp
unzip /tmp/play-$PLAY_VERSION.zip -d ~/play
export PATH=$PATH:~/play
play new ~/myFirstApp
play run ~/myFirstApp
If all went well browsing to localhost:9000 shows the Play1 welcome page.
Further reading (for version 1.5.x
, mostly the same as for 1.6.x
):
- Complete installation guide
- Your first application — the ‘Hello World’ tutorial
- Tutorial — Play guide, a real world app step-by-step
- The essential documentation
- API documentation (Javadoc)
Get it with:
git clone https://github.com/playframework/play1.git
The project history is pretty big. To avoid downloading it all try:
git clone https://github.com/playframework/play1.git --depth 10
Building the project from source is documented.
To share improvements fork the source code and create a pull request.
Please report bugs in this project's Github Issues section.
- Browse the collection of Play1 modules
- Our Code of Conduct
- RePlay — A minimalistic Play1 fork that uses Gradle
Play1 is distributed under the Apache 2 licence.