- https://staging.my.docear.org/ with credentials docear fki-H-12072013
- make sure you have installed a JDK (6 or 7) correctly
- open a console and enter
javac -version
, that should print your java version, for examplejavac 1.6.0_37
- you may have to add your Java bin folder to the PATH environment variable and open a new console window
- open a console and enter
- checkout the project
- go to the project folder with the console
- check:
dir
(orls
on UNIX) should show you the folders app, conf, project and some more
- check:
- then enter the command
run
orrun.bat
, this may take a while the first time because it downloads a lot of JARs, you may even think that it hangs- if this is the first time you run this script, check your firewall if it's blocking the download of libraries
- you can view the application in the browser after it printed something like
play - Listening for HTTP on port 9000...
- open http://localhost:9000 in your browser
- use Ctrl + D or Ctrl + C to stop the application
- Play Documentation: http://www.playframework.org/documentation/2.1.0/Home
- Generate IDE Project Files
*
sbt eclipse
#Eclipse *sbt idea
#IntelliJ IDEA * Netbeans: http://www.playframework.org/documentation/2.1.0/IDE - run unit tests in batch mode:
sbt test
- don't use CSS directly, use less in the folder app/assets/stylesheets
- don't use JavaScript directly, use CoffeeScript in the folder app/assets/javascripts
- Debugging
- recover from hard build errors:
sbt clean
- using initial data for the projects: see ProjectFixturesPlugin.java
- using a specific configuration:
sbt -Dconfig.file=conf/backenddevdocear2.conf compile ~run
sbt dist