ainc / hof-gatsby-sanity

0 stars 2 forks source link

hof-gatsby-sanity

Big Picture goal: Remake the hall of fame website in the React/Gatsby/Sanity framework

Gatsby

Gatsby Minimal Starter

🚀 Quick start

  1. Start developing.

    Navigate into your new site’s directory and start it up.

    cd webs
    npm run develop
  2. Open the code and start customizing!

    Your site is now running at http://localhost:8000!

Sanity Workflow

Sanity runs into issues with overwriting work when trying to update schemas simultaneously on different branches. The ideal workflow for updating schema is as follows:

  1. Plan out all necessary schema for development.

  2. Add schema and push to the main branch on Github before any changes are made by other users.

  3. Redeploy graphql API (sanity graphql deploy)

  4. Other users should pull your schema changes before adding any new schema.

  5. Continue development on the front-end accessing the already committed schema.

  6. Learn more

🚀 Quick start (Netlify)

Deploy this starter with one click on Netlify:

Deploy to Netlify

Sanity Clean Content Studio

Congratulations, you have now installed the Sanity Content Studio, an open source real-time content editing environment connected to the Sanity backend.

Now you can do the following things:

What to Do to When Making Changes to Production Structure

  1. Make changes in Sanity Studio to the structure.
  2. Run the following commands to transfer the changes made to the structure in the production database to the development database.

    cd studio
    npm run clone