Skip to content
scala.io spray-workshop code
Scala
Find file
Latest commit 6815b10 Oct 25, 2013 @jrudolph jrudolph step-4-solution
Failed to load latest commit information.
project step 0 Oct 25, 2013
src step-4-solution Oct 25, 2013
.gitignore Initial commit Mar 23, 2011
README.md step 0 Oct 25, 2013
Step1.md step-1 Oct 25, 2013
Step2a.md step-2b Oct 25, 2013
Step2b.md step-2b Oct 25, 2013
Step3a.md step-3a+b Oct 25, 2013
Step3b.md step-3a+b Oct 25, 2013
Step4.md step-4 Oct 25, 2013
build.sbt step-4-solution Oct 25, 2013

README.md

Step 0 - Setting up the environment

  • Install git
  • Clone example project:
git clone git://github.com/spray/spray-workshop.git
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.1")
  • Start sbt in the project directory
  • Type gen-idea to generate idea project
  • Run re-start in sbt to startup the server
  • Verify that you can access the server from your browser
  • Change the port the server runs on and re-start the server and check that everything still works

Tips and tricks

  • To open the current project in idea from the command line, you can add this script to your path
IDEA_HOME=~/opt/idea-IU-129.161
JDK_HOME=/usr/lib/jvm/java-6-sun
$IDEA_HOME/bin/idea.sh `pwd`
Something went wrong with that request. Please try again.