Skip to content

Commit

Permalink
Merge pull request data-for-change#2541 from shaked-hayek/Add-documen…
Browse files Browse the repository at this point in the history
…tation

Add documentation for debuging user system locally
  • Loading branch information
atalyaalon authored Jan 5, 2024
2 parents 8487b93 + 557993d commit 30003a4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/USERAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,3 +547,14 @@ described in the [errors](#Errors) section of this document.
| Field missing | 24 | Bad Request (Field {} is missing from json). | 400 |


### For Debug - Make System Work Locally
1. In https://console.cloud.google.com/apis/credentials, under the anyway project, use the credentials of
"Web client - Debug", or create new credentials under "OAuth 2.0 Client IDs".
2. We want to add environment variables to the anyway docker service. One way to do that is to
add in the file anyway/docker-compose.yml, under services.environment, the following lines:
- GOOGLE_LOGIN_CLIENT_ID=<client_id>
- GOOGLE_LOGIN_CLIENT_SECRET=<secret>
- APP_SECRET_KEY=secretkey
Where client_id and secret are the credentials from #1.
4. Make sure to run docker-compose down and up, if it was up.
Login should work at this point.

0 comments on commit 30003a4

Please sign in to comment.