Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
Rohan Sircar 15db21340a Fixed flyway migration files path vor 4 Jahren
app Many changes vor 4 Jahren
conf Many changes vor 4 Jahren
modules Many changes vor 4 Jahren
project Removed files from git vor 4 Jahren
public first commit vor 4 Jahren
scripts first commit vor 4 Jahren
test/controller first commit vor 4 Jahren
.gitignore Updated gitignore vor 4 Jahren
.scalafmt.conf first commit vor 4 Jahren
README.md first commit vor 4 Jahren
build.sbt Fixed flyway migration files path vor 4 Jahren

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.