This program runs a web server which serves information from the private “Open Source Pledge Potential Member List” spreadsheet.
Note
DEPRECATED: This project has been deprecated for now because of changes to our CRM spreadsheet.
To run this program, you need a Google account that has access to the spreadsheet.
- Create a project in the Google Cloud Console.
- Go to “Enables APIs & services” and give your project access to the Google Sheets API.
- Create OAuth 2.0 credentials for this API. You can create a web
client, for example. Make sure you include a redirect URI, which can just be https://opensourcepledge.com. Download
the JSON file with the credentials, and put it in
credentials.json
. - Go to the OAuth consent screen settings, make sure your app is set to “Testing”, and add yourself as a “Test user”.
- Run the program (see below).
- When prompted, open the URL the program provides you with in order to give your project Google Sheets access to your account.
- You'll be redirected to your redirect URL, and there will be a
code
parameter in the URL. Copy thiscode
parameter into the console then hit<Enter>
. Atoken.json
file will then be saved.
To run locally:
go run .
To deploy, go build -o bin/
and run bin/osp-potential-member-list
from the root repo directory on your deployment.