Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/riccardogiorato/node-sheets-demo

Read Google Sheets rows in Node
https://github.com/riccardogiorato/node-sheets-demo

google-sheets google-spreadsheet nodejs

Last synced: about 1 month ago
JSON representation

Read Google Sheets rows in Node

Awesome Lists containing this project

README

        

# node-sheets-demo

![](img/cover.png)

## Install Dependencies

```javascript
yarn add node-sheets dotenv
```

## Create Google API Key

You can generate your own API Key here:

1. Register here with your Google account and create a new project ["Google Developer Console"](https://console.developers.google.com/)

![](img/create.png)

2. Then go in the "Credentials" tab create a new API Keys.

![](img/credentials.png)

## Add the API Key to ENV

Remember to create a ".env" file with this content:

```
GOOGLE_SHEET_KEY=HERE_YOUR_API_KEY
```

## Run the script

To run this script run these commands

```javascript
yarn install
yarn dev
```

## Example data Source

Google Sheet Document with a [List of Students](https://docs.google.com/spreadsheets/d/1-UeQshwrIbxUwYuTIspGlSdUsy6cR1gDR6texuyB7G4/edit?usp=sharing)