简体   繁体   English

为IntelliJ生成Scala Play项目

[英]Generating Scala Play project for IntelliJ

I am new to Play Framework. 我是Play框架的新手。 I wished to make a simple hello world project using SBT (without activator), but unless I did something wrong it seems to me that not all of the files and folders are generated. 我希望使用SBT(不使用激活器)创建一个简单的hello world项目,但是除非我做错了事,否则似乎并不是所有文件和文件夹都生成了。

Followed the instructions here: http://www.playframework.com/documentation/2.3.x/IDE 请按照此处的说明进行操作: http : //www.playframework.com/documentation/2.3.x/IDE

Can anyone direct me to some resource that could help me? 谁能将我引到可以帮助我的资源上?

Thank you! 谢谢!

First, follow "Create a new application without Activator" section here: http://www.playframework.com/documentation/2.3.1/NewApplication 首先,请遵循此处的“创建没有激活程序的新应用程序”部分: http : //www.playframework.com/documentation/2.3.1/NewApplication

Then run "idea" in SBT console to generate .idea and .idea_modules directories with IntelliJ IDEA configuration. 然后在SBT控制台中运行“ idea”以使用IntelliJ IDEA配置生成.idea和.idea_modules目录。 Afterwards, use File - Open dialog in the IDE. 然后,在IDE中使用“文件-打开”对话框。

The steps above will create an empty application. 上面的步骤将创建一个空的应用程序。 You will have to create a controller, a view and routes file yourself if you don't want to install activator. 如果您不想安装激活器,则必须自己创建一个控制器,一个视图和路由文件。 Still I advise you to install activator where you'll find plenty of templates including "hello playframework" that would fit your needs. 我仍然建议您安装激活器,在该激活器中您会找到许多适合您需求的模板,包括“ hello playframework”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM