https://github.com/jpoehnelt/eleventy-google-docs-starter
Eleventy Starter using Google Docs and Google Drive
https://github.com/jpoehnelt/eleventy-google-docs-starter
eleventy eleventy-starter eleventy-template google-docs google-drive google-workspace
Last synced: 5 days ago
JSON representation
Eleventy Starter using Google Docs and Google Drive
- Host: GitHub
- URL: https://github.com/jpoehnelt/eleventy-google-docs-starter
- Owner: jpoehnelt
- License: apache-2.0
- Created: 2022-12-12T19:44:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-20T21:54:40.000Z (about 2 years ago)
- Last Synced: 2025-03-29T00:05:59.904Z (23 days ago)
- Topics: eleventy, eleventy-starter, eleventy-template, google-docs, google-drive, google-workspace
- Language: JavaScript
- Homepage: https://eleventy-google-docs-starter.netlify.app
- Size: 451 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Eleventy and Google Docs Starter
This Eleventy starter combines the [Google Docs API](https://developers.google.com/docs/api), [Eleventy](https://11ty.dev), and [@googleworkspace/google-docs-hast](https://www.npmjs.com/package/@googleworkspace/google-docs-hast) to create pages using Google Docs and Google Drive as a CMS.
[Demo](https://eleventy-google-docs-starter.netlify.app)
## Setup
1. Copy `.env.sample` to `.env`.
2. Create a [Google Cloud project](https://console.cloud.google.com) and enable the [Google Docs API](https://developers.google.com/docs/api).
3. Create a [service account](https://console.cloud.google.com/iam-admin/serviceaccounts) and download the JSON credentials file.
4. Copy the `client_email` and `client_private_key` value from the JSON credentials file to the variables in `.env`.
5. Create a Google Drive folder and share it with the service account email.
6. Copy the folder ID to the `GOOGLE_DRIVE_FOLDER` variable in `.env`.
7. Run `npm install` to install dependencies.
8. Run `npm run dev` to start the development server.