Book Image

Scala Programming Projects

By : Mikael Valot, Nicolas Jorand
Book Image

Scala Programming Projects

By: Mikael Valot, Nicolas Jorand

Overview of this book

Scala Programming Projects is a comprehensive project-based introduction for those who are new to Scala. Complete with step-by-step instructions and easy-to-follow tutorials that demonstrate best practices when building applications, this Scala book will have you building real-world projects in no time. Starting with the fundamentals of software development, you’ll begin with simple projects, such as developing a financial independence calculator, and then advance to more complex projects, such as a building a shopping application and a Bitcoin transaction analyzer. You’ll explore a variety of Scala features, including its OOP and FP capabilities, and learn how to write concise, reactive, and concurrent applications in a type-safe manner. You’ll also understand how to use libraries such as Akka and Play. Furthermore, you’ll be able to integrate your Scala apps with Kafka, Spark, and Zeppelin, along with deploying applications on a cloud platform. By the end of the book, you’ll have a firm foundation in Java programming that’ll enable you to solve a variety of real-world problems, and you’ll have built impressive projects to add to your professional portfolio.
Table of Contents (18 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Creating the project


To facilitate the project creation, we are providing a template which generates the skeleton of the project. For that purpose, Gitter8 will help us to generate the complete project based on a template hosted in Git.

We are not going to directly use the command line of Gitter8. We are instead going to use the integration with sbt to generate the project.

The template can be found on Github at GitHub - scala-fundamentals/scala-play.g8: Template used for the online shopping. This template has been forked from https://github.com/vmunier/play-scalajs.g8. We essentially changed the framework test from Specs2 to ScalaTest and added all the dependencies needed for our shopping project.

To create the project, enter the following in your console:

sbt new scala-fundamentals/scala-play.g8 --name=shopping --organization=io.fscala

This will create a new folder with all the files and folders needed for our project.

You can now import this project in IntelliJ, click on Import Project select...