Skip to content

ryanseys/google-api-test-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-api-test-app

Use the Node.js Google API in an Express web app. This project can be an example or a foundation for your own project.

Steps:

  1. Download this example
  2. Create a project and view your credentials in your Google Developer's Console
  3. Create a secrets.json file using your project's credentials (example below)
  4. Run npm install
  5. Run npm start to launch your app and see it work

secrets.json

Here is an example secrets.json file. Copy the below code and save it to a file in the root of your project called secrets.json. Do not share the contents of this file publicly once you have put in your client_id and client_secret.

{
  "web": {
    "client_id": "abcdefg",
    "client_secret": "1234567890",
    "redirect_uris": ["https://localhost:3000/oauth2callback"],
    "auth_uri": "https://accounts.google.com/o/oauth2/auth",
    "token_uri": "https://accounts.google.com/o/oauth2/token"
  }
}

About

Testing 1, 2, 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published