https://github.com/paulpietzko/astro-sheets
Astro Sheets is an open-source project that allows the use of Google Sheets as a headless CMS. This solution leverages the simplicity and accessibility of Google Sheets to manage content, while providing a robust API to integrate with your applications.
https://github.com/paulpietzko/astro-sheets
astro astrosheets cms google googlesheets googlesheetsapi headless-cms template
Last synced: over 1 year ago
JSON representation
Astro Sheets is an open-source project that allows the use of Google Sheets as a headless CMS. This solution leverages the simplicity and accessibility of Google Sheets to manage content, while providing a robust API to integrate with your applications.
- Host: GitHub
- URL: https://github.com/paulpietzko/astro-sheets
- Owner: paulpietzko
- License: mit
- Created: 2024-11-28T16:52:40.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-12T16:08:34.000Z (over 1 year ago)
- Last Synced: 2025-01-30T10:17:07.071Z (over 1 year ago)
- Topics: astro, astrosheets, cms, google, googlesheets, googlesheetsapi, headless-cms, template
- Language: Astro
- Homepage: https://astro-sheets.vercel.app
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Astro-Sheets: Google Sheets as a Headless CMS
Astro-Sheets allows you to turn Google Sheets into a simple, lightweight headless CMS for building blogs or content-driven static sites using the Astro framework. Perfect for small projects or static sites needing easy, dynamic content management.
π Demo: [astro-sheets.vercel.app](https://astro-sheets.vercel.app)
π Detailed Guide: [Google Sheets as a Simple CMS](https://medium.com/@paul.pietzko/google-sheets-as-a-simple-cms-18ed6c8b838e)
π¦ GitHub Template: [astro-sheets](https://github.com/paulpietzko/astro-sheets)
## β¨ Features
- Headless CMS using Google Sheets as the backend.
- Dynamic Content: Update your Google Sheets and reflect changes instantly on your site.
- SEO-friendly: Powered by Astro's SSR for optimal performance.
- Lightweight and Easy to Use: No complex setupβjust Google Sheets and a few lines of code.
## π Getting Started
1. **Clone the Template**
```bash
git clone https://github.com/paulpietzko/astro-sheets
cd astro-sheets
npm install
```
2. **Set Up Google Sheets as a CMS**
- Create a Google Sheet with columns like Title, Author, Date, and Content.
- Follow the guide to create a WebApp Script for Google Sheets to fetch your data dynamically.
- Deploy the script and copy the resulting URL.
3. **Connect Your Sheet to Astro**
- Replace the Google Sheets WebApp URL in `src/pages/index.astro` with your own:
```javascript
const res = await fetch("");
const data = await res.json();
```
4. **Run the Project**
- Start the development server:
```bash
npm run dev
```
- Visit the local server at `http://localhost:4321` to see your blog in action!
## π οΈ Project Structure
Your project includes the following:
```text
/
βββ public/ # Static assets
βββ src/
β βββ pages/ # Pages like index.astro
β βββ components/ # Reusable UI components
βββ package.json # Project configuration
```
## π§ Commands
| Command | Action |
|-----------------------|---------------------------------------------------|
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Builds the production site to `./dist/` |
| `npm run preview` | Previews your build locally before deployment |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |
## π Live Demo
Check out the live demo here: [astro-sheets.vercel.app](https://astro-sheets.vercel.app)
## π Learn More
- Detailed Guide: [Google Sheets as a Simple CMS](https://medium.com/@paul.pietzko/google-sheets-as-a-simple-cms-18ed6c8b838e)
- Astro Documentation: [docs.astro.build](https://docs.astro.build)
## π License
This project is licensed under the MIT License.