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
- Smile Version - x.y.z
- To create a new project : “smile new <project-name>”
- To create a new lib : “smile create-lib <lib-name>”
- To export lib : “smile export-lib”
- To reset the project : “smile spile”
Setup Intellij IDEA¶
- Download [ https://www.jetbrains.com/idea/download] and Install IntelliJ
- Open IDEA
- 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
- Menu : File -> Import Project
- Select build.sbt located in the project directory and click Ok
- Select checkbox - Use Auto Import, Press Ok
Setup Eclipse¶
- Download Eclipse Mars [http://www.eclipse.org/downloads/packages/release/Mars/1] and Unzip inside “installs” folder
- Install xtext plugin [https://marketplace.eclipse.org/content/xtext], drag and drop the installs button to Eclipse.
- Update smile plugin
> sbt
> eclipse-plugin-update <path to eclipse install folder / where the eclipse is unzipped>
- Restart Eclipse
- 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