Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brob/astro-hygraph-timeline-example
https://github.com/brob/astro-hygraph-timeline-example
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/brob/astro-hygraph-timeline-example
- Owner: brob
- Created: 2023-01-17T14:30:17.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T17:38:03.000Z (about 1 year ago)
- Last Synced: 2024-11-07T00:30:47.860Z (2 months ago)
- Language: Astro
- Size: 124 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# More Button in Astro with Hygraph Pagination
This is a demo that corresponds to [this article]() about Hygraph pagination.
## Getting Started
For the quickest start, use the button below to clone the Hygraph project with schemas and content.
[![Clone project](https://hygraph.com/button)](https://app.graphcms.com/clone/a1cd264ab6d3448d9b4d1e2cc2162620?name=Blog)
For a slightly slower start, you'll need a new Hygraph project with a `post` schema that has a `slug` and `content` field. `content` should be a Rich Text field.
To run the site locally run the following commands in your CLI.
```
git clone [email protected]:brob/astro-hygraph-timeline-example.gitcd astro-hygraph-timeline-example && npm install
```Once you have that, create a `.env` file in the root directory and the `ASTRO_HYGRAPH_ENDPOINT` variable with a link to your API endpoint from Hygraph.