Scala Play Tutorials

New Scala Play Project

Before we start we need:

activator installed and on our path.

a name for the project. I will use my-first-project.

We will do this from the terminal / command prompt.

Creating a new project will create a new folder. We want our command prompt to be one level above this. e.g. if we want to work in /home/vince/projects/my-first-project we need to go to /home/vince/projects.

From here we run the activator command to create a new project:

> activator new my-first-project

The output from this will contain options as to which type of project you want, something like this:

Choosing the option will create a new folder and various files and folders that will give you a “Hello, World” application. A good idea is to create the project file for you favourite IDE – this is the eclipse version but others are found here: http://www.playframework.com/documentation/2.2.x/IDE