|
5 months ago | |
---|---|---|
app | 5 months ago | |
conf | 5 months ago | |
modules | 5 months ago | |
project | 5 months ago | |
public | 8 months ago | |
scripts | 8 months ago | |
test/controller | 8 months ago | |
.gitignore | 5 months ago | |
.scalafmt.conf | 8 months ago | |
README.md | 8 months ago | |
build.sbt | 5 months ago |
This project shows Play working with Slick.
This project is configured to keep all the modules self-contained.
sbt flyway/flywayMigrate
You will need to run the flywayMigrate task first, and then you will be able to generate tables using sbt-codegen.
sbt slickCodegen
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
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.