Build Scala + Play+slick environment in idea

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.