Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stuyspec/uploader
🗄✒️Automatically uploads articles and media from Google Drive to EB and S3.
https://github.com/stuyspec/uploader
cli drive-client go google-cloud-platform graphql-client
Last synced: 11 days ago
JSON representation
🗄✒️Automatically uploads articles and media from Google Drive to EB and S3.
- Host: GitHub
- URL: https://github.com/stuyspec/uploader
- Owner: stuyspec
- License: mit
- Created: 2017-11-01T23:06:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-07T05:26:59.000Z (over 6 years ago)
- Last Synced: 2024-11-15T12:44:57.388Z (about 2 months ago)
- Topics: cli, drive-client, go, google-cloud-platform, graphql-client
- Language: Go
- Homepage: https://godoc.org/github.com/stuyspec/uploader
- Size: 16.8 MB
- Stars: 6
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uploader
[![GoDoc](https://godoc.org/github.com/stuyspec/uploader?status.svg)](https://godoc.org/github.com/stuyspec/uploader)
[![Go Report Card](https://goreportcard.com/badge/github.com/stuyspec/uploader)](https://goreportcard.com/report/github.com/stuyspec/uploader)
[![codebeat badge](https://codebeat.co/badges/1b7c5b89-9c46-4267-a7bc-f29017c5138a)](https://codebeat.co/projects/github-com-stuyspec-uploader-master)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
```sh
# 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](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](ROADMAP.md) file.
## Troubleshooting
For troubleshooting instructions, please visit the [TROUBLESHOOTING.md](TROUBLESHOOTING.md) file.