0
votes

I'm migrating an Application from Grails to Play Framework and i'm currently trying to figure out what's the best way of organizing the project structure.

I want to use Slick Codegen alongside with Flyway for Migrations, cause i want to keep a track of all the migrations that are being done (a solution similar to Rails Migrations would be perfect).

I see that Play Framework has the Play-Slick module but from what i've noticed, everything just happens like pure black-magic.

I saw an example on GitHub where Slick Modelling, Play Framework and Flyway Migrations are 3 separate SBT Modules, which makes perfect sense in case we ever want to move away from Play Framework.

Now, my questions is: What's the best architecture approach for a Play Framework App?

Note: I'm a newbie in Play Framework and Scala.

1
there are some additional ansers here: stackoverflow.com/questions/36616810/…nemoo

1 Answers

1
votes

I did a post a while ago about using Play + slick + mysql. Is has the minimal structure to work, but the one I found more correct (I think this point will be subjective): http://pedrorijo.com/blog/play-slick/

or the source code at https://github.com/pedrorijo91/play-slick3-steps