Scala for Node.js developers — Step 1: Scala installation

In this series of articles I will try to ease the bumpy road by describing my experiences from Node.js to Scala developer. I will use Ubuntu 16.04 as OS when I will be referring to CLI commands.

This mini post I will focus on installing Scala — it’s easy as it’s in Ubuntu’s default respositories:

sudo apt-get update
sudo apt-get install scala sbt

To check scala version just type scala you should get something like that:

$ scala
Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_121).
Type in expressions for evaluation. Or try :help.
scala>

Ctrl + C or :quit will exit scala’s process.

Well done! — you installed newest Scala. Grab a coffee, you deserve a break ;)

Wait a moment… What was that sbt thingy that I just installed — you could ask yourself that. For now think about sbt like a more advanced Scala brother of npm. There are other ways to run scala code but it’s a good starting place.

You can test sbt installation by running:

$ sbt
[info] Loading global plugins from /home/kamil/.sbt/0.13/plugins
[info] Set current project to projects (in build file:/home/kamil/projects/)
>

Well done once again!