If you’re running this project locally to learn and/or build your own version, you’ll need your own Sanity instance!
Check out Sanity’s docs to learn how to create and configure your own Sanity instance.
NOTE: You only need to get Sanity running locally if you need to make changes to the Sanity schema. Otherwise you should use the hosted version of the Sanity backend for content management.
# install the Sanity CLI if you don’t have it already
npm i -g @sanity/cli
# go into the Sanity folder
cd backend/
# install sanity into the project
sanity install
# start the studio
sanity start
REMINDER: you don’t have to run the studio locally during development. You only need to run the studio locally if you’re making changes to the data schema.
After making changes, you need to deploy both the studio and the GraphQL API.
sanity deploy
sanity graphql deploy
More links about Sanity:
- Read “getting started” in the docs
- Check out the example frontend: React/Next.js
- Read the blog post about this template
- Join the community Slack
- Extend and build plugins