1.1.2 • Published 5 years ago

gspreadlib v1.1.2

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

This project was aimed to try the new google api for spreadsheet by creating a simple helper.

GSpreadlib (google spreadsheets helper)

Build Status

Table of Contents

  • Setting data

  • Setting data for heroku deployment

  • Bootstrapping

Setting data

  • Set credentials from https://console.developers.google.com/ (OAuth client id -> Application type 'web')
  • Download client_secret.json and place it under secret_data folder (it must be named client_secret.json)
  • Put a spreatsheetId.json under secret_data folder (it must be a json like {"spreadsheet": "ABCD"}) where "ABCD" is your spreadsheet id

Setting data for heroku deployment

  • Set config vars on your heroku dashboard

CLIENT_ID

CLIENTSECRET

REDIRECT_URI

SPREADSHEETID

CLEARSTORAGE (optional)

Bootstrapping

  • npm install
  • npm start (listening on localhost, port: 3000)
  • npm t in order to run jest tests.
  • npm run start-clear in order to run localhost:3000 with cleared storage.
  • npm run webpack-build in order to run webpack in watch mode.