Git Product home page Git Product logo

gdrive-index's Introduction

Gdrive index

This lets you deploy a index server on heroku which serves files from your gdrive. It supports both gdrive and teamdrive. As teamdrive links cannot be share with people out of the drive this will let you do it and this dosent have a limit on downloads from drive.

Deploying

Deploy

How to setup

New way:

  1. Goto https://<project name>.herokuapp.com/setup
  2. Goto https://developers.google.com/drive/api/v3/quickstart/nodejs and click on Enable the Drive API (when it asks for type of click select other) and get client id and client secret then paste those in the setup page
  3. Fill out the rest and you'll see a table at the end telling you all the enviorment variables you need to set.
  4. Goto setting page of your project on heroku and then in Config Vars section click Reveal Config Vars.
  5. Add the config vars from the table onto heroku and wait 15-20sec before it starts up and you're good to go.
Variable name Value
CLIENT_ID Client id your recived in step 2
CLIENT_SECRET Client secret your recived in step 2
TOKEN Token you got in step 3
PARENT_FOLDER (optional but recommended) The id of the folder you want to be root of index
AUTH (optional) Username and password for index home (should be like username:password) share links will be available publically even with auth
SCOPE (optional) Scope of the auth in array eg. ["https://www.googleapis.com/auth/drive"]

gdrive-index's People

Contributors

dependabot[bot] avatar patheticgeek 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.