Skip to content

sashee/drive-api-from-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drive API from JS

This is a sample project that shows how one can use the Google authentication, and also how to store files in the user's Drive.

For a more detailed description, check out these 2 blog posts:

Live demo

For a live demo, see this link

To run this sample project on your computer

Just clone the repo, host the files on a web server of your choice and open index.html in a browser.

Note: The app must listen on port 8080, because that is the only whitelisted origin

To change the API project

  • Register a new project at the Google Developers Console
  • Create a new Client ID for a Web Application
    • Add a valid origin
    • Take note of the Client ID
  • Enable Drive API
  • At the gapi-auth-service there is a client id, change it to your project's

About

An example app on how to upload files to Google Drive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published