Hello World with Play

wget https://downloads.typesafe.com/typesafe-activator/1.3.6/typesafe-activator-1.3.6.zip?_ga=1.140741362.1365550810.1438956173

sudo unzip ~/Downloads/typesafe-activator-1.3.6.zip -d /opt/

export PATH=$PATH:/opt/activator-dist-1.3.6

java -version
java version “1.8.0_45”
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)

sudo chmod o+X /opt/activator-dist-1.3.6/activator

./activator new hello-world-app play-scala

cd hello-world-app

// in app/controllers/Application.scala
// change line
// Ok(views.html.index(“Your new application is ready.”)) -> Ok(“Hello World”)

./activator run

// in browser http://localhost:9000/

// to generate intillig idea project
mkdir -p ~/.sbt/0.13/plugins/
echo ‘addSbtPlugin(“com.github.mpeltonen” % “sbt-idea” % “1.6.0”)’ >>~/.sbt/0.13/plugins/build.sbt
./activator gen-idea


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s