I have a lot of experience building web applications, but I haven’t had the opportunity yet to play much with Silverlight, Scala, or App Engine. I hope to try out the technologies in a series of blog posts and get feedback and input from the community. I just uploaded the first version of “funslae” here:
http://1.latest.funslae.appspot.com/
It simply prints “Welcome to my world!” using a Scala class found in WelcomeServlet.scala. It is the simplest project I could come up with. You should be able to run it locally and even upload it to your own App Engine aplication if you wish. You will need JDK 6, Eclipse 3.5, and the Scala and App Engine plugins for Eclipse. The source code can be checked out:
svn checkout http://ctaggart.googlecode.com/svn/tags/blog-2009/2009-12-17/funslae/
The Eclipse update sites (Help > Install New Software) for the plugins are:
- http://www.scala-lang.org/scala-eclipse-plugin
- http://dl.google.com/eclipse/plugin/3.5
If you install Subversive (update site “Galileo” > Collaboration > Subversive Team Provider), then you can import the project into your workspace directly from the Subversion repository (File > Import > SVN > Project from SVN, choose SVN Kit 1.3.0 if prompted). If you use another Subversion client like TortoiseSVN, then you can import the project from the file system (File > Import > General > Existing Projects into Workspace, select the folder containing the .project file).
You can run the application locally, which will default to http://localhost:8888/, by Debug Configuration of type Web Application. Select Run > Debug Configurations, then right click on Web Application > New.
- Project: funslae
- Arguments > VM Arguments, paste the -javaagent line they tell you to put there
- Arguments > Working directory > Other > Workspace, select the funslae\war directory
“funslae” doesn’t do much yet. In fact, there is no Silverlight to be seen, but getting your server-side environment set up is an important first step. Good luck.