Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
Rohan Sircar 15db21340a Fixed flyway migration files path pirms 4 gadiem
app Many changes pirms 4 gadiem
conf Many changes pirms 4 gadiem
modules Many changes pirms 4 gadiem
project Removed files from git pirms 4 gadiem
public first commit pirms 4 gadiem
scripts first commit pirms 4 gadiem
test/controller first commit pirms 4 gadiem
.gitignore Updated gitignore pirms 4 gadiem
.scalafmt.conf first commit pirms 4 gadiem
README.md first commit pirms 4 gadiem
build.sbt Fixed flyway migration files path pirms 4 gadiem

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.