Giter Site home page Giter Site logo

google-api-test-app's Introduction

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": ["http://localhost:3000/oauth2callback"],
    "auth_uri": "https://accounts.google.com/o/oauth2/auth",
    "token_uri": "https://accounts.google.com/o/oauth2/token"
  }
}

google-api-test-app's People

Contributors

ryanseys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

google-api-test-app's Issues

Fix issues for new lib

From googleapis/google-api-nodejs-client#263 (comment):

I've got it working, thanks! There are problems when working behind a proxy, I'll work them out later if I can and file a ticket if applicable. This example works pretty good. The only changes I had to make where adding the googleapis module to package.json and updating the require statement in routes/index.js and then updating app.use(session...) to get rid of some deprecation errors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.