Getting started with playframework-2.0

Download playframework-2.0 eBook

Please do not use this tag!

This tag is a duplicate of playframework. Please post any content that you would post here in that tag, with the version set to “2.0”

Setting up a Play 2 ! project

Download Play! 1. Goto http://www.playframework.com/download and download latest Play! release (play-2.5.X.zip at the time of this writing). Unzip in a directory of your choice. We’ll refer to uncompressed folder directory as PLAY_HOME.

Add PLAY_HOME folder to you PATH environment variable, so that it’s handy when you run play commands from within your project. If you’re using Bash, you can do this by simply appending m like this to user.home/.bashrc

export PATH=$PATH:/home/impadmin/play-2.5.x
 

…and we are done. (detailed instructions are given here).

Create your project

  1. Goto to directory where you want to create your project.
  2. Create a new project named Sample (or any fancy name you would like to give

enter image description here

Run command “play” to enter Play! console.

You’re free to use any text editor of your choice for writing source code and modifying configuration files.

  1. To run enter image description here

Stats

18 Contributors: 3
Monday, December 19, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook