Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hygraph/gatsby-starter-hygraph-blog
Gatsby starter for creating a basic blog with Hygraph
https://github.com/hygraph/gatsby-starter-hygraph-blog
gatsby gatsby-starter graphcms hygraph reference-implementation
Last synced: 3 months ago
JSON representation
Gatsby starter for creating a basic blog with Hygraph
- Host: GitHub
- URL: https://github.com/hygraph/gatsby-starter-hygraph-blog
- Owner: hygraph
- License: 0bsd
- Created: 2020-07-28T09:54:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-09T14:09:33.000Z (over 1 year ago)
- Last Synced: 2023-10-09T15:29:17.738Z (over 1 year ago)
- Topics: gatsby, gatsby-starter, graphcms, hygraph, reference-implementation
- Language: JavaScript
- Homepage: https://blog.withheadlesscms.com
- Size: 571 KB
- Stars: 72
- Watchers: 22
- Forks: 27
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gatsby-starter-hygraph-blog
> A [Gatsby](httsp://gatsbyjs.com) starter for creating a basic blog with [Hygraph](https://hygraph.com)
• [Demo](blog.withheadlesscms.com) • [`gatsby-source-graphcms`](https://github.com/Hygraph/gatsby-source-graphcms)
[![Clone project](https://hygraph.com/button)](https://app.hygraph.com/clone/a1cd264ab6d3448d9b4d1e2cc2162620?name=Blog)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fhygraph%2Fgatsby-starter-hygraph-blog&env=HYGRAPH_ENDPOINT,HYGRAPH_TOKEN&envDescription=Hygraph%20API%20Endpoint%20and%20Token&demo-title=Hygraph%20Blog&demo-description=Gatsby%20starter%20for%20creating%20a%20basic%20blog%20with%20Hygraph&demo-url=https%3A%2F%2Fblog.withheadlesscms.com%2F)## Quick start
1. **Create a new Gatsby project via the [Gatsby CLI](https://www.npmjs.com/package/gatsby-cli)**
```shell
gatsby new hygraph-blog https://github.com/Hygraph/gatsby-starter-hygraph-blog
```2. **Provide your Hygraph project keys**
> In order to use this starter, you'll need to have created a new Hygraph project using our `Blog Template`.
Navigate into your new site’s directory and copy the `.env.sample` file.
```shell
cd hygraph-blog
cp .env.sample .env
```Inside of your newly created `.env` file, provide values for each variable. These variables can be found in the [project settings UI](https://hygraph.com/docs/guides/concepts/apis#working-with-apis).
```env
HYGRAPH_ENDPOINT=""
HYGRAPH_TOKEN=""
```3. **Start building!**
Install the dependencies and start the gatsby dev server:
```shell
yarn
yarn dev
```## Features
- Use [`gatsby-image`](https://www.gatsbyjs.org/packages/gatsby-image) with your Hygraph image assets.
- MDX support via [`gatsby-plugin-mdx`](https://www.gatsbyjs.org/packages/gatsby-plugin-mdx) on Hygraph `RichText` fields.
- Built with [Tailwind CSS](https://tailwindcss.com/).