This is a simple Node.js application that integrates with the Google Sheets API to fetch and display data from a Google Sheets spreadsheet.
To get started with this application, follow these steps:
Node.js: Make sure you have Node.js installed on your system. Installation
-
Clone the repository to your local machine
-
Install the required npm packages using:
npm install
-
Configuration
Before running the application, you need to set up your Google Sheets API credentials and configure environment variables.-
Create a .env file in the root directory of the application.
-
Add the following environment variables to the .env file:
CLIENT_ID=your-client-id CLIENT_SECRET=your-client-secret SPREADSHEET_ID=your-spreadsheet-id
Replace your-client-id, your-client-secret, and your-spreadsheet-id with your actual Google API credentials and spreadsheet ID.
-
-
Usage
Run the application:npm start
The server will start, and you can access the application in your web browser at http://localhost:3000.