Skip to content
Joel Edström edited this page Sep 24, 2015 · 1 revision

Requirements: Java Installed

Testing locally

  1. git clone https://github.com/DT142G-Project-2015/web-app.git

  2. cd web-app

  3. gradlew jettyRun [windows]
    ./gradlew jettyRun [unix]

  4. Done. The lunch menu should be accessible at: http://localhost:8080/web-app/menu/0

  5. (Optional) Import the project as a Gradle project into an IDE. IntelliJ Community Edition recommended. It looks just like Android Studio which is nice.

  6. (Optional) Since Commit 10 if you use IntelliJ you should go into Compiler Settings and enable "Make project automatically": then with jettyRun running in your terminal it will keep auto refreshing whenever you change files in IntelliJ.

Building for deployment

  1. gradlew assemble or gradlew war
    This will create a deployable .war file in /build/libs/web-app.war

Clone this wiki locally