O'Reilly logo

Play Framework Cookbook - Second Edition by Giancarlo Inductivo, Alexander Reelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Play console

The Play console is a command-line interface tool used to build and run Play applications. It is important for every developer to be familiar with the available commands, such as clean, compile, dependencies, and run, to fully utilize the power of the Play console.

How to do it…

You need to perform the following to use the Play console for both Java and Scala:

  1. After Activator finishes setting up the Play project, you can enter the Play console of your Play application.
    • Use the following command for Java:
          $ cd foo_java
          $ activator
      
    • Use the following command for Scala:
          $ cd foo_scala
          $ activator
      
  2. Once you have entered the Play console, you can run your application in the development mode:
    • Use the following command for Java:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required