A small app for redirecting to a Google Drive folder's newest file.
If this app is hosted at http://example.com
, you would append the
URL to a readable Google Drive folder like so:
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:
Note that folder_url
can resolve redirects like shortlinks.
These instructions assume that pipenv
is installed.
cp sample.env .env
pipenv install
pipenv run gunicorn app:app --log-file -
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 )"
- 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
GPL3