Scala HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
marcospereira Updated with template-control on 2018-07-16T18:38:45.677Z (#64)
    addSbtPlugin("" % "sbt-plugin" % "2.6.16")
Latest commit 334ed40 Jul 16, 2018

Play with Slick 3.1

Build Status

This project shows Play working with Slick.

This project is configured to keep all the modules self-contained.

  • Slick is isolated from Play, not using play-slick.
  • Database migration is done using Flyway, not Play Evolutions.
  • Slick's classes are auto-generated following database migration.

Database Migration

sbt flyway/flywayMigrate

Slick Code Generation

You will need to run the flywayMigrate task first, and then you will be able to generate tables using sbt-codegen.

sbt slickCodegen


You can run functional tests against an in memory database and Slick easily with Play from a clean slate:

sbt clean flyway/flywayMigrate slickCodegen compile test


To run the project, start up Play:

sbt run

And that's it!

Now go to http://localhost:9000, and you will see the list of users in the database.