您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
Rohan Sircar 15db21340a Fixed flyway migration files path 4 年前
app Many changes 4 年前
conf Many changes 4 年前
modules Many changes 4 年前
project Removed files from git 4 年前
public first commit 4 年前
scripts first commit 4 年前
test/controller first commit 4 年前
.gitignore Updated gitignore 4 年前
.scalafmt.conf first commit 4 年前
README.md first commit 4 年前
build.sbt Fixed flyway migration files path 4 年前

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.