From 16311b7701382a7a1faade3589289e8bd5240c96 Mon Sep 17 00:00:00 2001 From: David Katz <15Dkatz@shcp.edu> Date: Sun, 6 Jan 2019 10:27:12 -0800 Subject: [PATCH] Migrate to Google Cloud Platform --- .gcloudignore | 17 +++++++++++++++++ README.md | 11 ++++------- app.yaml | 1 + 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 .gcloudignore create mode 100644 app.yaml diff --git a/.gcloudignore b/.gcloudignore new file mode 100644 index 0000000..a3f0c76 --- /dev/null +++ b/.gcloudignore @@ -0,0 +1,17 @@ +# This file specifies files that are *not* uploaded to Google Cloud Platform +# using gcloud. It follows the same syntax as .gitignore, with the addition of +# "#!include" directives (which insert the entries of the given .gitignore-style +# file at that point). +# +# For more information, run: +# $ gcloud topic gcloudignore +# +.gcloudignore +# If you would like to upload your .git directory, .gitignore file or files +# from your .gitignore file, remove the corresponding line +# below: +.git +.gitignore + +# Node.js dependencies: +node_modules/ \ No newline at end of file diff --git a/README.md b/README.md index c899f59..b1fe59d 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,14 @@ -### Announcement: +### Announcement -Due to high usage, the heroku limits have been exceeded! I'll work on getting the API up again as soon as possible, while also implementing rate limiting, so that the service is usable by all. -Thank you! - -I've created a new heroku instance in the meantime. But I plan to create a more long-term solution with rate limiting on AWS. Stay tuned! +This API has migrated to the Google Cloud Platform! ## Endpoints: ### Grab a random joke! -[https://official-joke-api.herokuapp.com/random_joke](https://official-joke-api.herokuapp.com/random_joke) +[https://official-joke-api.appspot.com/random_joke](https://official-joke-api.appspot.com/random_joke) ### Grab ten random jokes! -[https://official-joke-api.herokuapp.com/random_ten](https://official-joke-api.herokuapp.com/random_ten) +[https://official-joke-api.appspot.com/random_ten](https://official-joke-api.appspot.com/random_ten) ## How these jokes were collected diff --git a/app.yaml b/app.yaml new file mode 100644 index 0000000..eed1e47 --- /dev/null +++ b/app.yaml @@ -0,0 +1 @@ +runtime: nodejs10