Giter Club home page Giter Club logo

stitching-sheets's Introduction

Stitching Sheets

MongoDB Stitch is an amazing Back-end as a Service that provides a framework for integrating services from virtually any publicly available API. I've written a bunch on this at MongoDB's Blog but in this article, I'll share with you how easy it is to integrate data from Google Sheets into MongoDB using MongoDB Stitch.

Stitching Sheets

Google Script

There are two key elements that make this solution work. First, we have a Google Sheets script which runs from a menu item we add to the sheet. This script collects a row of data at a time and POSTs it to a MongoDB Stitch HTTP Service incoming webhook. The second is the function that runs when the webhook is called — this is where the data is received and inserted into a MongoDB Database Collection.

Stitching Sheets: Google Sheet

Here's an example spreadsheet that contains data for my team's event tracking spreadsheet.

Event URL Type Date Start Date End Location Status Owner
ChiHackNight https://chicagohacks.tech/ Hackathon 01-Feb-2019 31-Dec-2019 Chicago, IL Approved Bill
PyTennessee https://www.pytennessee.org/ Conference 09-Feb-2019 10-Feb-2019 Nashville, TN Approved Steve
HopHacks Spring 2019 https://hophacks.com/ Hackathon 15-Feb-2019 17-Feb-2019 Baltimore, MD Deferred Jess
BrickHack https://brickhack.io/ Hackathon 16-Feb-2019 17-Feb-2019 Rochester, NY Deferred Dan
HackIllinois https://hackillinois.org/ Hackathon 22-Feb-2019 24-Feb-2019 Urbana-Champaign, IL Deferred Adam
HackCU https://hackcu.org/ Hackathon 22-Feb-2019 23-Feb-2019 Boulder, CO Declined Lisa
hoohacks.io http://hoohacks.io/ Hackathon 02-Mar-2019 03-Mar-2019 Charlottesville, VA Researching Susan
Confoo http://confoo.ca FM Event 13-Mar-2019 15-Mar-2019 Montreal, Canada Researching Carey

stitching-sheets's People

Contributors

mrlynn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stitching-sheets's Issues

Request failed for https://webhooks

Hello @mrlynn,
Please could you help me sort this error when I run the script :

Request failed for https://webhooks.mongodb-stitch.com returned code 404 (line 68, file "Code")
Screenshots below.

Also I did not create any db in atlas, as in I did not define collections in mongo atlas, could it be linked with the error ?

Thank you for your time and for sharing this repo and tutorial, the video is very didactic

Capture d’écran 2019-09-28 à 13 25 06

image
image

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.