Reader small image

You're reading from  Learning Scala Programming

Product typeBook
Published inJan 2018
Reading LevelBeginner
PublisherPackt
ISBN-139781788392822
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Vikash Sharma
Vikash Sharma
author image
Vikash Sharma

Vikash Sharma is a software developer and open source technology evangelist. He tries to keep things simple, which helps him write clean and manageable code. He has invested a large amount of time learning and implementing Scala code, and he has authored video courses for Scala. He works as a developer at SAP Labs.
Read more about Vikash Sharma

Right arrow

Hello world in Akka


For writing our first Akka actor, we need to add the akka-actor library dependency. For dependency management we'll be using SBT and, as we know, we'll be defining these library dependencies in our build.sbt file. To do this, we need to have SBT installed on our system.

Setting up the environment

To get started with a simple Akka project, we can simply follow these steps:

  1. Go to Lightbend's TECH HUB (https://developer.lightbend.com) and click on START A PROJECT:
  1. Search for Akka Quickstart Scala under Akka projects:
  1. Click on CREATE A PROJECT FOR ME!:
  1. Extract the downloaded ZIP (compressed) file.

We can open the extracted folder in IntelliJ IDEA IDE:

  1. Open IntelliJ IDE.
  2. Click on File | New | Project from Existing Sources...:
  1. Choose the build.sbt from the project (akka-quickstart-scala) we've just extracted:
  1. And you get the project open in the IntelliJ window:

This is one way of starting with an Akka project. This project has already defined all the akka-actors specific dependencies...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Scala Programming
Published in: Jan 2018Publisher: PacktISBN-13: 9781788392822

Author (1)

author image
Vikash Sharma

Vikash Sharma is a software developer and open source technology evangelist. He tries to keep things simple, which helps him write clean and manageable code. He has invested a large amount of time learning and implementing Scala code, and he has authored video courses for Scala. He works as a developer at SAP Labs.
Read more about Vikash Sharma