npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@koopjs/provider-google-sheets

v1.2.0

Published

A Google Sheets provider

Downloads

20

Readme

Google Sheets Provider

Greenkeeper badge

Create a provider to consume data from Google Sheets inside Insights for ArcGIS

Overview

Insights for ArcGIS can connect to any data source using the provider patter. This project includes an example Koop provider compatiable with Insights for ArcGIS. Javascript is used to create an express web server, which includes web service that knows how to communicate with Google Sheets.

Dependencies

  • NodeJS

Instructions

Installation

git clone https://github.com/ArcGIS/google-sheets-provider.git cd google-sheets-provider npm install

Configuration

  1. Obtain an API Key for Google Sheets - instructions
  2. Add the api key to you configuration
  • option 1: edit config/default.json and replace the value under googlesheets.auth with your api key
  • option 2: before running your server add your auth to your environment e.g. export GOOGLESHEETS_AUTH=YOUR_KEY

Startup

npm start

After npm start you should see something like this:

> node server.js

info: registered output: Geoservices 1.1.1
No root directory was specified, defaulting to:  /Users/foobar/koop/providers/google-sheets
info: registered filesystem: localfs 1.1.1
info: registered provider: googlesheets 1.0.0


Koop Trimet Provider listening on 3000
For more docs visit: https://koopjs.github.io/docs/specs/provider/
To find providers visit: https://www.npmjs.com/search?q=koop+provider

Try it out in your browswer: http://localhost:3000/googlesheets/1JlPaiuIHXmkfpLBaQdoRixPSasjX5NlDte70pyFT9yI/Park%20Cleanup!A1:H/FeatureServer/0/query
Or on the command line: curl --silent http://localhost:3000/googlesheets/1JlPaiuIHXmkfpLBaQdoRixPSasjX5NlDte70pyFT9yI/Park%20Cleanup!A1:H/FeatureServer/0/query?returnCountOnly=true

Press control + c to exit

Deployment

You have 3 deployment options.

Option 1 - This is a good option if you do not have Portal for ArcGIS staged in a place for development.

  • Create an NOW account, which enables free hosting of SSL NodeJS services
  • Download and install NOW
  • From inside the google-sheets-provider run now in your terminal
  • You will end up with this provider being hosted in NOWs free cloud

Option 2 - Arrage to have NodeJS installed on your 10.5+ Portal for ArcGIS machine

  • Make sure port 3000 is open and NodeJS is installed
  • Copy files to your machine with Portal for ArcGIS
  • Follow the instructions above

Option 3 - Access a web access machine and deploy the project files

  • Make sure port 3000 is open and NodeJS is installed
  • Copy files to the web accessable machine
  • Follow the instructions above

Getting Started

Once the Google Sheets provider is running, read below on how to bring this content into portal.

Add Provider to Portal for ArcGIS

  • Log into portal as a publisher or admin
  • Click My Content -> Add Item -> From the web
  • Complete the form as follows:

Type: ArcGIS Server Web Service

Url: https://googlesheets-provider-hkrquwqwvp.now.sh/googlesheets/1JlPaiuIHXmkfpLBaQdoRixPSasjX5NlDte70pyFT9yI/Park%20Cleanup!A1:H/FeatureServer/0

Title: Google Sheets

Tags: Park Cleanup, Insights, Provider

Add Provider to Insights

  • Log into Insights for ArcGIS
  • Click New Workbook
  • Browse for Google Sheets and select
  • Click Add

Other Useful Information

If you do not have the flexibility to deploy the project to a development environment, feel free to try out the sample below.

https://googlesheets-provider-hkrquwqwvp.now.sh/googlesheets/1JlPaiuIHXmkfpLBaQdoRixPSasjX5NlDte70pyFT9yI/Park%20Cleanup!A1:H/FeatureServer/0