https://github.com/hygraph/hygraph-astro-blog-starter
https://github.com/hygraph/hygraph-astro-blog-starter
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hygraph/hygraph-astro-blog-starter
- Owner: hygraph
- Created: 2024-03-06T20:03:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T20:05:42.000Z (over 2 years ago)
- Last Synced: 2025-02-25T17:55:59.712Z (over 1 year ago)
- Language: Astro
- Size: 123 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hygraph-nextjs-blog-starter
> An [Astro.js](https://astro.build) starter for creating a basic blog with [Hygraph](https://hygraph.com)
## Quick start
[](https://app.hygraph.com/clone/ccfd3e465ed249d987b0dfc3f107d437?name=Basic%20Blog)
1. **Clone and install the project**
```shell
npx degit git@github.com:hygraph/hygraph-astro-blog-starter.git
```
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.local
```
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/overview/api-access).
```env
HYGRAPH_ENDPOINT=""
HYGRAPH_TOKEN=""
```
3. **Start building!**
Install the dependencies and start the Next.js dev server:
```shell
npm install
npm run dev
```