Documentation

§Learning from Play Examples

The play-samples GitHub repository offers Play examples for Java and Scala. Play has many features, so rather than pack them all into one project, we’ve organized many examples that each showcase a Play feature or demonstrate a common use case. Make sure you have verified the requirements for running Play. You can either clone the play-samples GitHub repository or download its contents as zip file. Refer to the README.md file within each sample project directory to learn more about the example.

Note: The example projects are not configured for out of the box security.

If you are new to Play, we recommend following the Hello World tutorial for Java or Scala first:

  1. Play Java Hello World
  2. Play Scala Hello World

Note: When you run the tutorial application, it displays web pages with the same content and instructions contained in this documentation. The tutorial includes a deliberate mistake and having the documentation and application pages open in different tabs or browsers allows you to consult the documentation for the fix when you encounter the error.

Next: Creating a New Application


Found an error in this documentation? The source code for this page can be found here. After reading the documentation guidelines, please feel free to contribute a pull request. Have questions or advice to share? Go to our community forums to start a conversation with the community.