Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/riccardogiorato/node-sheets-demo
- Owner: riccardogiorato
- Created: 2021-03-04T08:16:21.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-04T19:13:27.000Z (almost 4 years ago)
- Last Synced: 2024-11-07T19:29:57.357Z (3 months ago)
- Topics: google-sheets, google-spreadsheet, nodejs
- Language: JavaScript
- Homepage:
- Size: 108 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)