This is a sample application that uses Sinatra to host a site that saves data in a Google Sheet.
Follow the steps in this blog post to create the credentials for a service account in the Google APIs Console. Download the credentials and copy them to this project with the filename client_secret.json
.
You will also need to create a blank spreadsheet and give your service account access to edit.
Clone this repository with the command:
git clone https://github.com/ODINAKACHUKWU/ruby_google_spreadsheet.git
cd ruby_google_spreadsheet
Install the dependencies:
bundle install
Start the app:
bundle exec ruby app.rb
Visit:
http://localhost:4567