创建你的第一个项目

要创建新项目,请使用以下命令(HelloWorld 是项目的名称,play-java 是模板)

 $ ~/activator-1.3.10-minimal/bin/activator new HelloWorld play-java

你应该得到类似于此的输出

Fetching the latest list of templates...

OK, application "HelloWorld" is being created using the "play-java" template.

To run "HelloWorld" from the command line, "cd HelloWorld" then:
/home/YourUserName/HelloWorld/activator run

To run the test for "HelloWorld" from the command line, "cd HelloWorld" then:
/home/YourUserName/HelloWorld/activator test

To run the Activator UI for "HelloWorld" from the command line, "cd HelloWorld" then:
/home/YourUserName/HelloWorld/activator ui

该项目将在当前目录中创建(在这种情况下,它是我的主文件夹)

我们现在准备开始申请了