Go to file
David Ashby 90e327b548 remove Tabletop dependency (#2)
* reformat and remove Tabletop dependency

* add an eslint file

* remove Tabletop from linter file
2016-10-02 17:36:28 -04:00
css remove blog as I wasn't using it and it was the wrong way 2015-04-05 23:06:51 -04:00
img delete img 2013-05-27 20:58:32 -07:00
js remove Tabletop dependency (#2) 2016-10-02 17:36:28 -04:00
.eslintrc remove Tabletop dependency (#2) 2016-10-02 17:36:28 -04:00
.gitignore update gitignore 2014-09-01 22:10:13 -04:00
CNAME CNAME file setup 2014-09-20 19:30:14 -04:00
favicon.png fix silly misnamed favicon 2014-09-01 22:13:24 -04:00
index.html remove Tabletop dependency (#2) 2016-10-02 17:36:28 -04:00
license.md tweak a few side files 2014-09-20 19:39:04 -04:00
readme.md merge into the master branch too 2015-04-04 17:50:13 -04:00
stores.json remove Tabletop dependency (#2) 2016-10-02 17:36:28 -04:00

Hi!

screenshot

This is the code for a website that lists bookstores in New York City!

Fork -n- Go!

Here's a fun fact:

GitHub gives free hosting for every repository (see GitHub Pages).

This repo only has a gh-pages branch, the branch GitHub hosts, which means as soon as you fork it, you have a hosted and live version of it yourself! Read more about fork-n-go type of projects.

Next, create a spreadsheet with the same column headers as the original.

Click on the index.html file, click edit and change line 118 (or thereabouts) it looks like:

    document.addEventListener('DOMContentLoaded', function() {
	  	var gData
	  	var URL = "0Ao5u1U6KYND7dFVkcnJRNUtHWUNKamxoRGg4ZzNiT3c"
			Tabletop.init( { key: URL, callback: showInfo, simpleSheet: true } ) 
    }) 

Replace the existing spreadsheet URL key with your spreadsheet's key. You'll find that by clicking (in Google Spreadsheets) File > Publish to the Web > Start Publishing, it will then display the key in a window. get key

Commit those changes and LIKE WOAH you now have a version of this website hooked to a spreadsheet that you can distrubute however you'd like.

You can find your version at yourGitHubName.github.io/theReposName (in this case /hack-spots).

But How?

A Google Spreadsheet holds all the data and it is connected to this website using the goodies in sheetsee.js. Everytime you visit the website, you'll have the most up to date data that has been entered into the spreadsheet.