Up: Chapter 2

2.6 Running it

Running the application is easy. Make sure you’ve got Java 1.6 or better installed on your machine. Change directories into the chat directory and type sbt update ~jetty-run. The Simple Build Tool will download all necessary dependencies, compile the program and run it.
You can point a couple of browsers to http://localhost:8080 and start chatting.
Oh, and for fun, try entering <script>alert(’I ownz your browser’);<script> and see what happens. You’ll note it’s what you want to happen.
Up: Chapter 2

(C) 2012 David Pollak