Getting Started

Install Smile

Prerequisites
To use the Smile platform, you need JDK 8. Be sure to have the java and javac commands in the current path (you can check this by typing java -version and javac -version at the shell prompt).
  • Create a directory named “installs”
  • Go to smile-repo, download the latest smile-x.y.z.zip and unzip it inside installs folder
  • Rename unzipped folder smile-x.y.z to smile
  • Add smile to classpath : ~/installs/smile/bin
  • open command prompt and > smile should show you the version like below
    1. Smile Version - x.y.z
    2. To create a new project : “smile new <project-name>”
    3. To create a new lib : “smile create-lib <lib-name>”
    4. To export lib : “smile export-lib”
    5. To reset the project : “smile spile”

Setup Intellij IDEA

  1. Download [ https://www.jetbrains.com/idea/download] and Install IntelliJ
  2. Open IDEA
  3. Menu: File -> Settings ->
    Select SBT under IDE Settings Enter -DSMILE_HOME=~/installs/smile-x.y.z (i.e., the smile install directory) in VM parameters textbox Click OK
  4. Menu : File -> Import Project
  5. Select build.sbt located in the project directory and click Ok
  6. Select checkbox - Use Auto Import, Press Ok

Setup Eclipse

  1. Download Eclipse Mars [http://www.eclipse.org/downloads/packages/release/Mars/1] and Unzip inside “installs” folder
  2. Install xtext plugin [https://marketplace.eclipse.org/content/xtext], drag and drop the installs button to Eclipse.
  3. Update smile plugin
> sbt
    > eclipse-plugin-update <path to eclipse install folder / where the eclipse is unzipped>
  1. Restart Eclipse
  2. Right Click → Import Project

Create Play module and Run

How to create a play module and run a simple hello world

Deploy application

Deploy the created play application