`
sillycat
  • 浏览: 2539833 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Playframework(1)Install and Demo

 
阅读更多
Playframework(1)Install and Demo


1. Install the package
Download the latest package from here http://download.playframework.org/releases/

Move the file to working directory

>mv play-2.0.4.zip /Users/carl/tool/



Unzip the file

>unzip play-2.0.4.zip



Link the /opt to my working directory

>sudo ln -s /Users/carl/tool/play-2.0.4 /opt/play



Add it to my path and verify the installation

>vi ~/.profile

export PATH=/opt/play:$PATH

>. ~/.profile



Verify the installation

>play help



2. Create the First Demo
>play new firstapp

I choose java application at first. I am familiar with java, so I will start at this.



>cd firstapp

>play



Start the web application

play>run



Visit the application with this URL http://localhost:9000



3. Enable the Eclipse IDE

Go to the working directory

>cd /Users/carl/work/play/firstapp

>play eclipsify



4. Anatomy of a Play 2.0 application

5. Commands

play>console

enter the scala console window



JPDA debug port

>play debug



force clean

>play clean-all



references:
http://www.playframework.org/documentation/2.0.4/Installing


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics