Skip to content

Commit

Permalink
updated a real fork with all the changes of MigrateWahlzeitIntoTheCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrdidi committed Jun 16, 2015
1 parent 740113f commit 6c0fc0b
Show file tree
Hide file tree
Showing 389 changed files with 16,656 additions and 17,395 deletions.
23 changes: 0 additions & 23 deletions .classpath

This file was deleted.

7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/build
/web/data/photos
/web/WEB-INF/classes
/classes
/src/main/webapp/WEB-INF/lib/
.gradle
.idea
*.iml
36 changes: 0 additions & 36 deletions .project

This file was deleted.

12 changes: 0 additions & 12 deletions .settings/.jsdtscope

This file was deleted.

7 changes: 0 additions & 7 deletions .settings/org.eclipse.jdt.core.prefs

This file was deleted.

9 changes: 0 additions & 9 deletions .settings/org.eclipse.wst.common.component

This file was deleted.

10 changes: 0 additions & 10 deletions .settings/org.eclipse.wst.common.project.facet.core.xml

This file was deleted.

1 change: 0 additions & 1 deletion .settings/org.eclipse.wst.jsdt.ui.superType.container

This file was deleted.

1 change: 0 additions & 1 deletion .settings/org.eclipse.wst.jsdt.ui.superType.name

This file was deleted.

1 change: 0 additions & 1 deletion FIXME.txt

This file was deleted.

61 changes: 61 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Wahlzeit - An Open Source Package to create Photo Rating Sites



## PART I - INTRODUCTION

Wahlzeit is an open source web application that lets users upload photos and rate photos of other users, on a 1..10 scale. Users get to present their best photos and learn what other users thought of their photos.

Wahlzeit is used to teach agile methods and open source software development at the Professorship of Open Source Software at the University of Erlangen.

It is an easy-to-learn yet complete Java web application that is available under the GNU Affero Public License v3 license, see the [LICENSE.txt](/LICENSE.txt) file.

Wahlzeit is a Google App Engine app, that can be used on your local machine or be deployed to Google App Engine to reach it online.

For more information, see http://github.com/dirkriehle/wahlzeit and http://osr.cs.fau.de.



## PART II: WAHLZEIT SETUP

**First download repository:**
1. Fulfill prerequisites: install **Java JDK**, set **JAVA_HOME**, and install **git**
2. open console and select the directory where the directory ```MigrateWahlzeitIntoTheCloud``` containing the sourcecode should be created
3. ```git clone https://github.com/tfrdidi/MigrateWahlzeitIntoTheCloud.git```


### Run Wahlzeit on your local machine
1. ```cd MigrateWahlzeitIntoTheCloud```
2. ```./gradlew appengineRun```
3. wait until gradle and project dependencies are downloaded and the local instance is started

Open [http://localhost:8080](http://localhost:8080) to use Wahlzeit on your local machine.


### Upload Wahlzeit to Google App Engine

**Create an Google App Engine instance:**
1. if you don't have already one, create a Google account
2. go to https://console.developers.google.com and login with your Google account
3. now you are in the developers console, there select "create a project"
1. choose a project name, which used later as *your-project-ID*
2. accept the terms of service

**Configure your repository and upload Wahlzeit**
1. store your *your-project-ID* in your repository:
1. open the file [/MigrateWahlzeitIntoTheCloud/src/main/webapp/WEB-INF/appengine-web.xml](/src/main/webapp/WEB-INF/appengine-web.xml)
2. replace the project name with *your-project-ID*: \<application\>*your-project-ID*\</application\>
3. save and close the appengine-web.xml
2. ```./gradlew appengineUpdate```
3. a browser window pops up and asks for permission, accept it
4. copy the code from the following browser window to your gradle console
5. as Wahlzeit uses Google Datastore, enable billing/enter the test phase. It will never use that much quota, but it is necessary for Datastore (tip: 4683 4578 2937 6522 ;-) )
6. in the https://console.developers.google.com select *Storage - Cloud Storage - Storage Browser*
7. create a new bucket with the name *org-wahlzeit-data*, standard setting and location in EU

Open https://*your-project-ID*.appspot.com to use Wahlzeit on Google App Engine.

Done!



70 changes: 0 additions & 70 deletions README.txt

This file was deleted.

55 changes: 55 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apply plugin: 'war'
apply plugin: 'appengine'
apply plugin: 'java'

def gaeVersion = "1.9.21"

buildscript {
repositories {
mavenCentral()
}

dependencies {
classpath "com.google.appengine:gradle-appengine-plugin:1.9.21"
}
}

repositories {
mavenCentral()
jcenter()
}

dependencies {
appengineSdk 'com.google.appengine:appengine-java-sdk:' + gaeVersion

compile 'com.google.appengine:appengine-api-1.0-sdk:' + gaeVersion
compile 'com.google.appengine.tools:appengine-gcs-client:0.4.4'
compile 'com.googlecode.objectify:objectify:5.1.5'
compile 'javax.servlet:servlet-api:2.5' // GAE works with 2.5
compile 'commons-fileupload:commons-fileupload:1.2'

// testing dependencies
testCompile 'com.google.appengine:appengine-testing:' + gaeVersion
testCompile 'com.google.appengine:appengine-api-stubs:' + gaeVersion
testCompile 'com.google.appengine:appengine-api-labs:' + gaeVersion
testCompile 'junit:junit:4.+'
testCompile 'org.mockito:mockito-core:1.10.19'
}

test {
filter {
//include all tests from package
includeTestsMatching "org.wahlzeit.model.*"
}
}

appengine {
httpPort = 8080
downloadSdk = true
jvmFlags = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000']

appcfg {
oauth2 = true
noCookies = false
}
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Tue Jun 09 15:30:42 CEST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-bin.zip
Loading

0 comments on commit 6c0fc0b

Please sign in to comment.