Skip to content

Instantly share code, notes, and snippets.

@swartzrock
Last active August 29, 2015 14:03
Show Gist options
  • Save swartzrock/4a467013ceb0e833fa49 to your computer and use it in GitHub Desktop.
Save swartzrock/4a467013ceb0e833fa49 to your computer and use it in GitHub Desktop.
Get Started With Scala

Setup Instructions For Get Started With Scala

Today’s course on getting started with Scala will require a bit of setup on your part. Having everything ready to go well before you show up will ensure that you will get the maximum value from our course.

Physical Setup

You’ll need to bring a working laptop with you.

Java Setup

Make sure to have a recent JDK installed on your machine. We tested the sample project with Java 8, but at least Java 7 is recommended. You’ll need to tell Intellij where this is installed.

Intellij Setup

We’re using the Intellij IDEA IDE to compile and run our test project. If you aren’t an owner you can download the excellent Community Edition for free.

You’ll need to install the Intellij IDEA Scala Plugin as well. Fortunately you can install plugins from right inside Intellij IDEA without having to exit the program.

Make sure that Intellij has been configured with your system’s JDK installation. Try creating a new Java project to verify that it knows where your SDK is located. This will ensure that you will be able to open our Scala project, which does require a JDK to be configured.

The sample project

The final installable is our sample project, a 309 megabyte tar bzip archive that includes a REST API project build and managed by SBT. SBT, the Simple Build Tool, is the default command line build tool for Scala projects. Intellij files are also included so you can open the project and edit it from Intellij while building and running the server from SBT.

You can download the project at http://www.bks2.com/scala-tutorial.tar.bz2 . After extracting, ensure the project is ready by going into its directory and executing ./sbt compile from the command line. If it all works, your local project will be built and ready for use at the tutorial meetup. If there is a problem, please post it on the event page so that we can help you get it working by the meetup.

Extracting The Project Archive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment