Organization: whocoronavirus.org
Domain: staging.whocoronavirus.org
Services:
- Staging App Engine
- Staging Cloud Datastore
- Staging Firebase Project
Services:
- Production Firebase Project
Domain: whoapp.org
Services:
- Production App Engine
- Production Cloud Datastore
Against staging:
curl -i \
-H 'Content-Type: application/json' \
-H 'Who-Client-ID: 00000000-0000-0000-0000-000000000000' \
-H 'Who-Platform: WEB' \
-X POST \
-d '{token: 'test'}' \
'https://whoapp.org/WhoService/putDeviceToken'
curl -i \
-H 'Content-Type: application/json' \
-H 'Who-Client-ID: 00000000-0000-0000-0000-000000000000' \
-H 'Who-Platform: WEB' \
-X POST \
-d '{latitude: 37.7625244, longitude: -122.4449224}' \
'https://whoapp.org/WhoService/putLocation'
Note: The deployment scripts run the build automatically.
$ gradle build
$ ./bin/run-dev-server.sh
Then open http://localhost:8080/.
$ ./bin/deploy-staging.sh
Then open https://who-app-staging.appspot.com/.
$ ./bin/deploy-production.sh
Then open https://who-app.appspot.com/.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Note: We run on Java 12 but target Java 8.
$ brew tap adoptopenjdk/openjdk
$ brew cask install adoptopenjdk12
$ brew install gradle
Follow the directions here.
$ gcloud auth login
$ gcloud components install app-engine-java && gcloud components update
$ brew cask install intellij-idea-ce
Open the project in IntelliJ:
$ open -a /Applications/IntelliJ\ IDEA\ CE.app/ .