This session covers from Scala basics, and create a microservice with scala
-
Install SBT
// install sbt $ brew install sbt // Check the installation $ sbt sbtVersion
-
Install Scalatest by following this step (For more information visit this page Scalatest installation) open file
~/.sbt/0.13/global.sbt
then add the following lineresolvers += "Artima Maven Repository" at "http://repo.artima.com/releases"
-
Install IntellijIDE and install these plugins by yourself
- Install Scala Plugins
- Install PlantUML Integration Plugins
-
Pre-Load dependencies (Console)
// in your project dir run this command $ sbt test
-
Pre-Load dependencies (IntellijIDE)
- Import Projects
- Open Intellij
- Import Project from Existing Source
- Select your cloned project directory
- Choose
Import project from external model
and then selectsbt
- Press
Next
- Check
Download/Library sources
andDownload/sbt sources
- Check
Use sbt shell/for imports
andUse sbt shell/for builds
- Select
Project JDK
as java version 1.8 - Click
Finished
- Choose the target window for opening source file (Optional)
- Setup SDK
- Open any
.scala
file insrc
folder, on the top right of text editor may appearSetup Scala SDK
orSetup Java SDK
- Click at
Setup Scala SDK
-> Click buttonCreate
-> Select version2.12.3
-> ClickOK
-> ClickOK
- Click at
Setup Java SDK
-> Choose1.8
-> ClickOK
- Open any
- Import Projects
- Introduction
- Scala Installation
- SBT
- Intellij IDE
- Hello World
- Control Statements
- If-Else
- Pattern Matching
- Immutable Collections
- Lists
- Arrays
- Tuples
- Future, Options, Eithers
- Trait
- Functions
- Higher-Order Function
- Composition
- Currying
- Class & Object
- Defining Class
- Companion Object
- Sequences
- For-Comprehension
- Implicits
- Generic Types
- Algebraic data type (ADT)
- Type Level Programming with Cats
- Semigroup
- Monoid
- Monad
- Type safety with Effortless Domain Driven Design (DDD)
- Scalatest
- Mockito
- Architecture
- Akka Http
- Typesafe Configuration
- Mongo Scala Driver
- Docker