Coder Social home page Coder Social logo

s-pmpodolski / gapi-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rlancer/gapi-starter

0.0 2.0 0.0 272 KB

A boiler plate for dealing with the Google Javascript APIs in a ReactJS and Webpack environment

JavaScript 99.96% HTML 0.03% CSS 0.01%

gapi-starter's Introduction

Google Login & API + ReactJS + Flow + Webpack starter kit

Google API's are great but they were designed before the module partner of Javascript programing became popular. This starter fixes that handing Google login and library loading for you.

#Get the Code!

git clone https://github.com/rlancer/gapi-starter.git
cd gapi-starter
npm install

#Add in your Project's Settings

Create a file titled app_settings.json in the root directory.

{
  "client_id": "Your apps client ID from the Google API console",
  "libraries": [
    {
      "name": "compute",
      "version": "v1"
    },
    {
      "name": "drive",
      "version": "v2"
    },
    {
      "name": "gmail",
      "version": "v1"
    },
    {
      "name": "calendar",
      "version": "v3"
    },
    {
          "name": "all the other libs you wont to work with",
          "version": "v3"
        }

  ],
  "scopes": [
    "profile scope added automatically",
    "https://www.googleapis.com/auth/compute.readonly",
    "https://www.googleapis.com/auth/compute",
    "https://www.googleapis.com/auth/cloud-platform"
  ]
}

#Run the Webpack Dev Server

webpack-dev-server --progress --colors --port 9030

#Ensure that the Javascript Origin is Set

In the Google API Console

Under Credentials, make sure that the project has the proper Javascript origin set for both production and development.

gapi-starter's People

Watchers

James Cloos avatar  avatar

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.