idea to build Scala + Play + slick environment
Install Play and Activator
1. Download the play 2.5.3, which contains activator1.3.10
2. Command: Activator new or activator run to generate the required environment
idea to build the Scala+play project
New Project
1. Download the Scala engine in the idea's configuration
Reference: Https://www.jetbrains.com/help/idea/2016.1/enabling-and-disabling-plugins.html?origin=old_help
2. Create a new project and select the Scala sub-module
3. If you set up a play project, select Activator, or you can choose Scala or SBT
4. Select template-Play Scala Seed
5. Enter the project name;
When you import a project, you run SBT and load the dependent libraries that you need (some time)
Import Project
1. Import the project
2. Import Project from external model
3. Import SBT Project
4. Complete
View Configuration
1. Project-I build.properties save version information for SBT
2. You can refactor Build.scala in the project directory and use Scala to manage project dependencies
3. Or under Engineering BUILD.SBT Management Pack dependencies, such as Play,slick,mysql and other version information
Slick and Slick-codegen configuration
1. There are version compatibility issues between Slick and play, Scala, https://github.com/playframework/play-slick#releases, and if you need to use slick, you need to maintain version consistency. This project is used by
"Com.typesafe.slick" percent "slick"% "2.1.0",
"Com.typesafe.slick" percent "Slick-codegen"% "2.1.0",
"Com.typesafe.play" percent "Play-slick"% "0.8.0"
The play version is Addsbtplugin ("Com.typesafe.play"% "sbt-plugin"% "2.3.9") in PROJECT/PLUGIN.SBT
(The version of the play Scala seed template that is automatically loaded in Warning:idea is 2.3.9, and you can consider adding it manually if you need the latest version.) Play will also rely on Akka, etc.)
Reference
1.https://www.playframework.com/documentation/2.5.x/ide
2.https://www.jetbrains.com/help/idea/2016.1/getting-started-with-play-2-x.html?origin=old_help
Build Scala + Play+slick environment in idea