Skip to content

🗄✒️Automatically uploads articles and media from Google Drive to EB and S3.

License

Notifications You must be signed in to change notification settings

stuyspec/uploader

Repository files navigation

uploader

GoDoc Go Report Card codebeat badge

A command line interface (CLI) for uploading articles from Google Drive Volume folders to our Rails API.

Setup

You must have an admin account (security level > 0) in the database to be able to use the uploader. Put the credentials to the account in a dotenv file like so:

EMAIL=YOUR_EMAIL
PASSWORD=YOUR_PASSWORD

Usage

# Compile program and create binary
$ go install

# Run bulk upload for Volume 108 Issue 11
$ uploader -m 108 -i 11

For specific instructions on how to clean Issue folders for uploading (a must for every issue), please visit the UPLOADING.md file.

Optional flags

  • --window, -w: open core files when bulk uploading (e.g. Photo/Art folders, Newspaper PDF)
  • --local PORT, -l PORT: use a locally hosted GraphQL server

Roadmap

For information on the things which are currently being focused on, please visit the ROADMAP.md file.

Troubleshooting

For troubleshooting instructions, please visit the TROUBLESHOOTING.md file.