codeforamerica / glossary-bot

A Glossary bot for Slack
MIT License
116 stars 45 forks source link

Use a google sheet as a datasource? #23

Open mathowie opened 9 years ago

mathowie commented 9 years ago

I was setting this up and it feels like the full postgres db instance is kind of overkill for a few short text phrases in most organizations. So naturally I thought about a single google spreadsheet as a datasource, using javascript to extract info from it.

This would have the following advantages:

It carries some disadvantages:

I got the idea from Darius Kazemi, his site is powered by a Google spreadsheet.

The site: http://tinysubversions.com/projects/ The source data: https://docs.google.com/spreadsheets/d/1EDs10O223Hgm7gfFxTWsJpnKMPkGj7VEEZzZB8-wxfA/pubhtml The source code for it: https://github.com/dariusk/projects

Seems like something that could reduce some installation friction and make for a more user-friendly way to view data in either Slack or Google Drive, plus make for easier data entry by more of a staff, no?

migurski commented 9 years ago

There are two tables in the database: https://github.com/codeforamerica/glossary-bot/blob/master/gloss/models.py

Both could be sheets in one doc. This is interesting. :100: