Skip to content

Instantly share code, notes, and snippets.

@stsatlantis
Created May 28, 2016 21:54
Show Gist options
  • Save stsatlantis/973ae02a1b3b6b54f9cf4bd3ac225174 to your computer and use it in GitHub Desktop.
Save stsatlantis/973ae02a1b3b6b54f9cf4bd3ac225174 to your computer and use it in GitHub Desktop.
Setting up your Play 2 Application in IntelliJ

Prerequisites

  • Having IntelliJ Installed

This example uses IntelliJ 2016.1

Setting up IntelliJ for Scala project

  • File -> Settings -> Plugins
  • Search for "Scala" and Install the plugin
  • Restart IntelliJ

Setting up project from existing code aka Import existing code

  • File -> New -> Project from existing sources..
  • Find your directory in the file explorer -> Ok
  • Choose Import project from external model -> Choose SBT
  • Import project last step:
    • Check Auto-import
    • Choose Project SDK
    • Finish
    • Don't be suprised! It will download half of the internet.
  • Build your project
  • After Building is done:
    • If you are lucky enough next to your build button there will be a Play2 Configuration
    • If not, chooce any Controller/GlobatSetting or any file, right click (Windows) then choose Run Play 2 App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment