Skip to content

Commit

Permalink
Proof read
Browse files Browse the repository at this point in the history
  • Loading branch information
s2t2 committed Apr 16, 2024
1 parent c20012c commit 9135f28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions docs/GOOGLE_CLOUD.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,12 @@ Find the service account you just created in the "Service Accounts" section of t

![](/docs/images/service-account-json.png)

Then download the resulting JSON key file into the root directory of this repo, and rename it to "google-credentials.json".
Then download the resulting JSON key file into the root directory of this repo, and rename it to "google-credentials.json". It is important to have this file in the root directory of the repository, specifically called "google-credentials.json". This file has been ignored from version control for security reasons (see ".gitignore" file), and therefore should NOT be tracked in version control or uploaded to GitHub.

## Enabling APIs

In the Google APIs project console, from the "Enabled APIs and Services" page, search for and enable the "Google Sheets API".


![](/docs/images/google-cloud-enable-apis-services.png)

![](/docs/images/google-cloud-enable-sheets-api.png)

If you would like to use additional APIs in the future (for example Google Calendar API for a calendar integration), you will need to come back and enable them separately.
6 changes: 3 additions & 3 deletions docs/RENDER.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ References:

## Repo Setup

Ensure the `gunicorn` package is listed in the "requirements.txt" file and commit and push before moving forward.
Ensure the `gunicorn` package is listed in the "requirements.txt" file and commit and push before moving forward. This step has been done already.

## Google Sheet Setup
## Google Sheet Setup, Revisited

You may want to create a separate copy of the Google Sheet database to use in production. If you do, specify the production document's identifier as the `GOOGLE_SHEETS_DOCUMENT_ID` environment variable when configuring the server (see below). This will allow you to keep user data separate from development and test data.

Expand Down Expand Up @@ -53,6 +53,6 @@ Click "Create web service" and wait a few moments as your code is deployed. Then

## Google Cloud Setup, Revisited

To make the login functionality work, revisit the OAuth Client setup (see Google Cloud Setup Guide), and configure a new redirect URL pointing to the render server: "https://YOUR_RENDER_APP.onrender.com/auth/google/callback", and save the changes.
To make the login functionality work, revisit the OAuth Client setup (see Google Cloud Setup Guide), and configure a new redirect URL pointing to the render server (like "https://YOUR_RENDER_APP.onrender.com/auth/google/callback"), and save the changes.

FYI - while the OAuth Client is still in test mode, you may need to allow certain individuals to use the hosted app, by specifing a number of email addresses as "Test Users" in the OAuth Consent Screen. Once your app is out of test mode, anyone with a Google Account should be able to login to the hosted app.

0 comments on commit 9135f28

Please sign in to comment.