Desktop version

Home arrow Computer Science arrow Building Applications with Scala


Defining the secret

Before we run our standalone application, we will need to apply one more change. We need to change the default secret. Locate the reactivewebstore-1.0- SNAPSHOT/conf/application.conf file.

Change the secret to following in the application.conf file:

play.crypto.secret = "changeme"

You will need to provide a different value. It can be anything, as long as you don't call it changeme. If you don't change this, your application will not boot up. You can get more information at

If you just want to test the deploy for now, let's call it playworks.

Now, we are all set to start the application.

Running the standalone deploy

In order to run the app, we will use the script generated by the universal task. Go to the

reactivewebstore-1.0-SNAPSHOT directory and then run $ bin/reactivewebstore, which would look something like this:

Now, you can open your browser and go to http://localhost:9000/.

That's it; we have our app up and running. Feel free to test all the features we built-they all work!

It should look something like this:

Found a mistake? Please highlight the word and press Shift + Enter  
< Prev   CONTENTS   Next >

Related topics