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.
To get started with a simple Akka project, we can simply follow these steps:
- Go to Lightbend's TECH HUB (https://developer.lightbend.com) and click on
START A PROJECT
:
- Search for Akka Quickstart Scala under Akka projects:
- Click on
CREATE A PROJECT FOR ME!
:
- Extract the downloaded ZIP (compressed) file.
We can open the extracted folder in IntelliJ IDEA IDE:
- Open IntelliJ IDE.
- Click on
File
|New
|Project from Existing Sources...
:
- Choose the
build.sbt
from the project (akka-quickstart-scala
) we've just extracted:
- 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...