Skip to content

CivicTechTO/gdrive-whats-new-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's New (on GDrive)

A small app for redirecting to a Google Drive folder's newest file.

Usage

If this app is hosted at http://example.com, you would append the URL to a readable Google Drive folder like so:

http://example.com?folder_url=https://drive.google.com/drive/u/0/folders/1zGubetz_yE-Lt4jI98MtqnwY8FBZZGnt

Additional Options

By default, the app will redirect to the most recently created file listed in the folder. You may also select based on other fields, like so:

http://example.com?folder_url=https://drive.google.com/drive/u/0/folders/1zGubetz_yE-Lt4jI98MtqnwY8FBZZGnt&select_by=modifiedDate

Note that folder_url can resolve redirects like shortlinks.


💻 Local Development

These instructions assume that pipenv is installed.

cp sample.env .env
pipenv install

pipenv run gunicorn app:app --log-file -

Configuration

A Google service account keyfile is needed in order for this app to work. You may generate a keyfile via these instructions.

You may then either store the file as service-key.json in the project root directory, or you may convert the keyfile into a base64-encoded string, and store that in GOOGLE_CREDS_BASE64. For example, on linux-based systems:

export GOOGLE_CREDS_BASE64="$( cat service-key.json | base64 )"

Deployment

  • The demo heroku app will auto-deploy all changes to master branch on GitHub.
  • To self-host you own version, use the "Deploy to Heroki" button. #TODO

©️ License

GPL3

About

A small app for redirecting to a Google Drive folder's newest file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published