建立你的第一個專案
要建立新專案,請使用以下命令(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
該專案將在當前目錄中建立(在這種情況下,它是我的主資料夾)
我們現在準備開始申請了