1. Install brew.
$ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. Install Play 2.$brew install typesafe-activator3. Choose a /directory to create your first play project.
a. Create new Play project $ activator new
b. Select Scala $4
c. Enter name of project
(commands shown below)
2. Open project UI. Go to project /directory and enter command below. It will open project in browser UI.USER:temp vhome$ activator newFetching the latest list of templates...Browse the list of templates: http://typesafe.com/activator/templatesChoose from these featured templates or enter a template name:1) minimal-java2) minimal-scala3) play-java4) play-scala(hit tab to see a list of all templates)> 4Enter a name for your application (just press enter for 'play-scala')> Hello-Play-appOK, application "Hello-Play-app" is being created using the "play-scala" template.
/../Hello-Play-app/$ activator ui
Wait few seconds then you will see below:1. To run Play App.
a. open terminal and got o the project /directory
b. Enter command:
$activator
c. Then enter command:
$run
If everything is working fine; you will see the below terminal output:
Now your Play app is up and running.
To see the app running go to: http://localhost:9000/
This is to get you started. Good luck :-)
References:
Play 2 Framework
How to use Play Console
No comments:
Post a Comment