Skip to content
Example app using scala Play Framework and Slick
Branch: master
Clone or download
Latest commit a0a5f10 Apr 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Migrate to Play 2.7.X Apr 17, 2019
conf Migrate to Play 2.7.X Apr 17, 2019
project Migrate to Play 2.7.X Apr 17, 2019
public Migrate to Play 2.7.X Apr 17, 2019
.gitignore
.travis.yml Add travis config file Nov 8, 2015
LICENSE Add Play template Nov 4, 2015
README.md
build.sbt Migrate to Play 2.7.X Apr 17, 2019

README.md

play-slick3-steps example

Build Status

Simple working app using play 2.7 and slick 4.0.0 with mysql. Step by step tutorial at https://pedrorijo91.github.io/blog/play-slick/

Created since the available demos have too much irrelevant code to who wants to integrate slick with a play app.

Based on bhavyalatha26/play-scala-slick-example.

Removed some code such as:

  • Traits and implementation classes
  • Useless controllers
  • Support for i18n
  • activator

Getting Started

To run this demo using sbt:

  • git clone this repository
  • Update the MySQL server url, username and password in conf/application.conf
  • Create a example database on your MySQL server.
    CREATE DATABASE example;
  • Launch the demo using sbt run
  • Open the Play web server at http://localhost:9000
  • You should be prompted to apply the evolution script. Apply the script.
  • You should now see the app running.
You can’t perform that action at this time.