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
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