Home » JVM Languages » Scala

Scala

Play and SBT basics

Previously we had an introduction to sbt, its default tasks and how to add extra tasks. Play comes with the sbt console. The SBT console is a development console based on sbt that allows you to manage a Play application’s complete development cycle. Let us create a play application using sbt and see the commands provided. sbt new playframework/play-scala-seed.g8 [warn] ...

Read More »

SBT basics

Sbt is the de facto build tool in the Scala community. Being used to other build tools you will be familiar with the commands clean – Deletes files produced by the build, such as generated sources, compiled classes, and task caches. compile – Compiles sources test – Executes all tests package – Produces the main artifact, such as a binary ...

Read More »

Use JSON with Play and Scala

Once getting your hands into typing scala code using play, the first thing that comes to mind is JSON. Without doubt JSON is one of the most basic components of web applications. Rest apis use json, your angular app has to consume json and the list goes on. If you are lazy like me, you expect that it is sufficient ...

Read More »

SQL Data Access in Play using Scala

Today’s modern application frameworks come with apromise of easy sql data access. There is no wonder why we have so many frameworks that make it easier to issue queries and handle transactions. SQL is the lingua franca of most applications when it comes to databases. Play comes with the JDBC plugin. We encountered the JDBC plugin previously in order to ...

Read More »

Database Initialization with play and Scala

Once starting your play prototype application one of the priorities is to initialize your database and also manage the database schema changes. Play provides us with evolutions. By utilizing evolutions we are able to create our database and to manage any futures changes to the schema. To get started we need  to add the jdbc dependency and the evolutions dependency. libraryDependencies ...

Read More »

Your first Web application with Play and Scala

Today we are going to develop a simple play application using Scala. To do so we must have sbt installed to our system. Once installed we issue the command sbt new playframework/play-scala-seed.g8 Then we are presented with an interactive terminal in order to pass valuable information. name [play-scala-seed]: PlayStarter organization [com.example]: com.gkatzioura scala_version [2.11.8]: scalatestplusplay_version [2.0.0]: play_version [2.5.13]: Then let ...

Read More »

A journey with Scala

To those who are regular visitors of this blog, it is well known that when it comes to developing code I am a Spring/Java guy. Also I use different technologies like node or python but this depends largely on the project’s needs. Due to some recent projects and courses involving Spark, stumbling on Scala was inevitable. After some investigation I decided ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns