Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

An opinionated Gatsby starter with useful component library and Sanity CMS setup to quickly build sites ✈

License

Notifications You must be signed in to change notification settings

MantasMikal/gatsby-starter-picks

Repository files navigation

An opinionated Gatsby starter with custom UI components and Sanity CMS setup to quickly build sites.

DEMO


Netlify Status

Features

  • Gatsby 3
  • Sanity.io CMS integration with a few predefined schemas and widgets
  • SCSS Modules
  • Buletproof primitive component library to get the boring stuff out of the way
  • Useful SCSS utilities mixins to aid development
  • Tests included
  • Storybook 6

Setup

Deploy to Netlify

Use NPM

# Install deps
cd gatsby-starter-picks && npm i && npm i -g @sanity/cli gatsby-cli

# Login to Sanity
sanity login

# Note: Skip this step if you want to look around first
# Removes existing sanity config and sets up a new project
cd studio && sanity init && npm run graphql-deploy && cd ..

# Run
# Studio at http://localhost:3333
# Web frontend at http://localhost:8000
# GraphiQL explorer at http://localhost:8000/___graphql
npm start

# Format and lint
npm run lint
npm run fix

# Build
npm run build

# Deploy Sanity Graphql API
npm run graphql-deploy

# Deploy the Sanity Studio to *.sanity.studio
npm run sanity-deploy

# Run storybook
npm run storybook

Read the docs

Run Storybook to learn how components work

Getting started with Sanity.io

Sanity.io

gatsby-source-sanity

Contribute

  1. Fork it
  2. Create your feature branch git checkout -b feature/fooBar
  3. Commit your changes git commit -am 'Add some fooBar'
  4. Push to the branch git push origin feature/fooBar
  5. Create a new Pull Request

Credits

A massive thanks to @jackbrewer for creating and maintaining Picks component library and SASS utility mixins

This starter is inspired by Sanity

About

An opinionated Gatsby starter with useful component library and Sanity CMS setup to quickly build sites ✈

Topics

Resources

License

Stars

Watchers

Forks