thedoritos / resheet

Create RESTful API from Google Sheet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RESheeT

Create RESTful API from Google Sheet.

What's this?

For prototypes, we usually need some simple DB and WEB API to CRUD the data. While it is possible to provide real DBMS, isn't it great if we can simply use Google Sheet for storing and serving the data?

Using Google Sheet has following benefits.

  • Easy to create table. Just add a sheet and define header column, and you are ready.
  • Easy to modify the data. Especially for a teammate who isn't familliar with DBMS.
  • You can use formulars for advanced usecases.

Getting Started

To create an account

  1. Create a Service Account on Google Developers Console.
  2. Download the access key of the account in JSON format.
  3. Enable Google Sheet API on the console.
  4. Create a spreadsheet on Google Sheet.
  5. Share the spreadsheet to the account with read & write permissions.

To run the server

  1. Encode the access key in Base64
    • ruby TODO
  2. Define environment variables.
    • RESHEET_SPREADSHEET_ID : The ID of the spreadsheet
    • RESHEET_CREDENTIALS : The access key
    • RESHEET_API_KEY (Optional) : Set key you like if you want to authenticate API with a key

About

Create RESTful API from Google Sheet


Languages

Language:Ruby 100.0%