https://github.com/hp-e/sanity-gridsome-blog
Blog with Gridsome
https://github.com/hp-e/sanity-gridsome-blog
Last synced: 2 days ago
JSON representation
Blog with Gridsome
- Host: GitHub
- URL: https://github.com/hp-e/sanity-gridsome-blog
- Owner: hp-e
- Created: 2020-03-12T11:43:17.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T05:00:39.000Z (over 3 years ago)
- Last Synced: 2025-01-13T01:09:36.566Z (over 1 year ago)
- Language: JavaScript
- Size: 1.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog with Gridsome
_Fully customizable blog template with a Vue.js front-end._
Deployed from [sanity.io/create](https://www.sanity.io/create/?template=sanity-io%2Fsanity-template-gridsome-blog).
## What you have
- A fast by default blog with [Gridsome](https://gridsome.org)
- Structured content using [Sanity.io](https://www.sanity.io)
- Global deployment on [Netlify](https://netlify.com)
## Quick start
1. Clone this repository
2. `npm install` in the project root folder on local
3. `npm run dev` to start the studio and frontend locally
- Your studio should be running on [http://localhost:3333](http://localhost:3333)
- Your frontend should be running on [http://localhost:8080](http://localhost:8080)
4. `npm run build` to build to production locally
## Enable real-time content preview on development
1. Go to your [project’s API settings on manage.sanity.io](https://manage.sanity.io/projects/ngjmfr7i/settings/api) and create a token with read rights.
2. Rename `.env.development.tenplate` to `.env.development` and paste in the token: `SANITY_READ_TOKEN="yourTokenHere"`.
3. Restart the development server (`ctrl + C` and `npm run dev`).
If you want to turn off preview you can set `watchMode: false` in gridsome-config.js. If you just want to preview published changes you can set `overlayDrafts: false` in gridsome-config.js.
## Deploy changes
Netlify automatically deploys new changes commited to master on GitHub. If you want to change deployment branch, do so in [build & deploy settings on Netlify](https://www.netlify.com/docs/continuous-deployment/#branches-deploys).
This starter comes with a Netlify-widget that lets you trigger new deploys from Sanity Studio.
## Stuck? Get help
[](https://slack.sanity.io/)
Join [Sanity’s developer community](https://slack.sanity.io) or ping us [on twitter](https://twitter.com/sanity_io).