Skip to content

This app connects to the Google Drive API with a service account and displays found images in a Lightbox gallery.

Notifications You must be signed in to change notification settings

yogesnsamy/myappiskcon

Repository files navigation

Working sample: https://iskconalbumkl.herokuapp.com/

The app uses the Express framework with EJS as the templating engine. 'Lightbox for Bootstrap' is used for image display: http://ashleydw.github.io/lightbox/.

Steps to test the app locally:

  1. Create 'service account key' on the Google Developer Console.
  1. Download the generated json file and store it safe. Take note of the "client_email" & "private_key" in the json file.
  1. On the Google drive, add 'client_email' to the Google Drive folder you want to share.
  • go to Google Drive and identify the folder you want to share.
  • add client_email to the list of people you want to share the folder with
  1. Download this project folder.

  2. Create a new '.env' file inside the project folder. The format is similar to what's in the '.env.example' file.

  3. Insert the generated 'client_email' & 'private_key' generated in step 2 into file '.env'.

  4. Type 'npm install' to install all dependencies.

  5. Type 'start_local' to start the app locally and view it at http://localhost:8628/

Key logic is in the following files:

  • routes/index.js
  • views/index.ejs

About

This app connects to the Google Drive API with a service account and displays found images in a Lightbox gallery.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published