Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ochieng424/sanity-gatsby-portfolio
Portfolio
https://github.com/ochieng424/sanity-gatsby-portfolio
Last synced: 1 day ago
JSON representation
Portfolio
- Host: GitHub
- URL: https://github.com/ochieng424/sanity-gatsby-portfolio
- Owner: Ochieng424
- Created: 2019-11-03T19:30:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T07:43:56.000Z (almost 2 years ago)
- Last Synced: 2023-03-05T06:38:46.876Z (over 1 year ago)
- Language: JavaScript
- Size: 2.77 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sanity-gatsby-portfolio
A portfolio using structured content and a static site builder.
Deployed from [sanity.io/create](https://www.sanity.io/create/?template=sanity-io%2Fsanity-template-gatsby-portfolio).
## What you have
- A blazing fast portfolio with [Gatsby.js](https://gatsbyjs.org)
- Structured content using [Sanity.io](https://www.sanity.io)
- Global deployment on [Netlify](https://netlify.com)## Quick start
1. Clone this repository from your GitHub account
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:8000](http://localhost:8000)
4. `npm run build` to build to production locally## Enable real-time content preview in development
1. Go to your [project’s API settings on manage.sanity.io](https://manage.sanity.io/projects/zrowt9ib/settings/api) and create a token with read rights.
2. Copy `.env.development.template` 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 disable the preview you can set `watchMode: false` in gatsby-config.js. If you just want to preview published changes you can set `overlayDrafts: false` in gatsby-config.js.
## Deploy changes
Netlify automatically deploys new changes commited to the `master` branch on GitHub. If you want to change the deployment branch you may do so in [build & deploy settings on Netlify](https://www.netlify.com/docs/continuous-deployment/#branches-deploys).
## Get help
[![Slack Community Button](https://slack.sanity.io/badge.svg)](https://slack.sanity.io/)
Join [Sanity’s developer community](https://slack.sanity.io) or ping us [on twitter](https://twitter.com/sanity_io).