https://github.com/brizandrew/gdrive_frame
https://github.com/brizandrew/gdrive_frame
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/brizandrew/gdrive_frame
- Owner: brizandrew
- Created: 2018-12-02T21:30:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-17T23:34:53.000Z (over 6 years ago)
- Last Synced: 2025-02-01T21:41:35.309Z (4 months ago)
- Language: JavaScript
- Size: 49.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GDrive Frame
An app to create a slideshow out of a Google Drive folder.
## Installation
Copy the `.env` template and fill it out.
```
$ cp .env.template .env
```## Usage
To download all the images shared with the service account specified in the `.env` file run the following:
```
$ npm run start
```This whill save images to the `downloads` directory by default.
To use this is part of a larger app you can import it and run it, passing the desired output directory as the only argument.
```javascript
import gdrive from "./path/to/gdrive_frame"; // ES6 Imports
const gdrive = require("./path/to/gdrive_frame").default // CommonJS;gdrive("path/to/downloads");
```## Development
To start the development watch scripts run:
```
$ npm run dev
```Once you're finished developing, run the build script:
```
$ npm run build
```