This is a monorepo project that uses Next.js as the frontend framework, Tailwind CSS for styling, Sanity for content management, and Netlify for hosting.
- Sanity Studio (CMS / content database)
- Sanity admin (manage users and project settings)
- Netlify admin (manage hosting)
- Official Next.js Documentation
- Official Gatsby Documentation
- Official Tailwind CSS Documentation
- Official Sanity Documentation
- Sanity README
git pull💡 Recommeded: work in git branches, and merge to master when ready to deploy.
Sanity
# Start Sanity studio (if edits to the content schema need to be made)
# ./packages/sanity
yarn startNext.js
# Start Next.js server
# ./packages/nextjs
yarn devAfter schema updates are complete and are ready to be used in the frontend, make sure to run the following command to update the GraphQL schema to use in Gatsby.
Sanity
# Update GraphQL schema
# ./packages/sanity
yarn graphqlSanity
# Deploy Sanity studio (if edits to the schema have been made)
# ./packages/sanity
yarn deployMerge edits to master branch and a Netlify deploy will be triggered automatically, updating the live site.
git checkout master
git merge <branch>
git push