Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
Rohan Sircar 15db21340a Fixed flyway migration files path il y a 4 ans
app Many changes il y a 4 ans
conf Many changes il y a 4 ans
modules Many changes il y a 4 ans
project Removed files from git il y a 4 ans
public first commit il y a 4 ans
scripts first commit il y a 4 ans
test/controller first commit il y a 4 ans
.gitignore Updated gitignore il y a 4 ans
.scalafmt.conf first commit il y a 4 ans
README.md first commit il y a 4 ans
build.sbt Fixed flyway migration files path il y a 4 ans

README.md

Play with Slick 3.3

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

Testing

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

Running

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.