Follow instructions here to grab id
from your google drive sheet and set up the api.
Create .env
file following .env.sample
guidelines. This is the long aplha-numeric code in the middle of your document URL, which looks something like this:
1xcOoLJqXYrL_oVRsHoInKwN6V7bP-tisL1rChw4m3OE
Clone the git repository, downloading directly as a zip file will not have the .git folder included
$ git clone https://github.com/VirenMohindra/SpreadsheetToJson.git
$ cd SpreadsheetToJson/
$ git submodule init
$ git submodule update
This will grab the latest version of gsx2json and update the submodules.
Gsx2Json handles converting the spreadsheet output to cleaner json.
Open a new terminal window, cd
into the gsx2json
project directory and then
$ npm install
$ node app
This is currently added as a submodule to this project.
Open a new terminal window, cd
into project directory and then
gem install filewatcher
$ filewatcher '**/*.rb' 'time ruby instarem.rb
If constant reloading with filewatcher isn't required ruby instarem.rb
will work as well.
Linting is performed through Rubocop
$ gem install rubocop
$ rubocop
Rules are in .rubocop.yml
WIP
Sheet needs to be published for web, security might be compromised.