Skip to content

Instantly share code, notes, and snippets.

@hkhamm
Last active February 2, 2018 03:13
Show Gist options
  • Save hkhamm/e4b8e5f22f124e569434 to your computer and use it in GitHub Desktop.
Save hkhamm/e4b8e5f22f124e569434 to your computer and use it in GitHub Desktop.
Using the Play Framework

#Using the Play Framework

##Installation

Install the Play Framework with Homebrew.

brew install typesafe-activator

##Setup a Play app in Intellij Community Edition

Create a new Scala based Play app called 'playtest' and set it up for Intellij.

activator new playtest play-scala
cd playtest
activator idea

Open Intellij and select 'Open Project'. Navigate to and select the 'playtest' directory.

##Run the app

In Intellij, once you've opened the playtest app, open an Intellij Terminal instance and use the activator to run the app.

activator run

##View the app in your browser

Open a browser and navigate to http://localhost:9000. You can now edit the app in Intellij and when you refresh your browser tab it will refect your edits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment