Giter Site home page Giter Site logo

tailorvj / createslidesfromdrivefolder Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 570 KB

A Google Slides Editor Add-on that reads all images in a Google Drive folder and creates a slide for each image in the current presentation

JavaScript 85.49% HTML 14.51%

createslidesfromdrivefolder's Introduction

CreateSlidesFromDriveFolder

A Google Slides Editor Add-on that reads all images in a Google Drive folder and creates a slide for each image in the current presentation

Develop

Clone this repo. This goes without saying, right?!

Make sure you have node.js (and npm naturally installed on your development system)

You are going to need the Clasp CLI in order to work with this project.

Install Clasp globally

$ npm install -g @google/clasp

Create a Clasp project

Pay attention, the project must be in the src folder, not the root!

$ cd src
$ clasp login
$ clasp create CreateSlidesFromDriveFolder
$ clasp push
$ clasp open

This will open your browser and you should see the code from the src folder in the Google Script editor

IMPORTANT: Never edit the code in the online editor, only in your local development environment. We will be using Clasp to push code modifications from local development environmnent to the online testing environment.

Test your code in Google Script & Slides

Before you begin, create a new Slides docuemnt for testing purposes on https://slides.new . Name your presenation for easy identification

Now that your code is online, you have to create a test in the online editor

  • Press the arrow on the Deploy button
  • Select Text Deployments
  • Press the settings icon next to Select type (top left of the dialog)
  • Select Editor Add-on
  • Use the default settings, select the presentation you created for testing purposes
  • Approve your settings
  • Select the test from the list and press Execute. The presentation will open
  • Open the Extensions menu. Your add-on should have a subment on it.
  • Test

How to get a folder id

Each folder in Google Drive has a unique ID. Just copy the id after the /folders/ part of the URL. For example, if the folder URL is https://drive.google.com/drive/folders/1I19gYQ8US-jVSFogbs_q8BZjcCu4PkCC, the id is 1I19gYQ8US-jVSFogbs_q8BZjcCu4PkCC

Add features and use Clasp to push to your testing environment

You coding is done in the local development machine from now on. Testing is done online though, so here is how to push your code and test.

  • Edit the code in the src folder
  • Save
  • Open a terminal in the src folder
$ clasp push
$ clasp open
  • Run your test deployment
  • Test
  • Close the Slides editor
  • Repeat

createslidesfromdrivefolder's People

Contributors

tailorvj avatar

Watchers

 avatar

Forkers

codeinstructour

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.