### Start Local Development Server for SanityPress Source: https://github.com/nuotsu/sanitypress/blob/main/README.md Starts the local development server for both the Next.js website and the embedded Sanity Studio. This command is used after installing the SanityPress template. It provides live reloading for frontend changes and access to the CMS. ```sh npm run dev ``` -------------------------------- ### Initialize SanityPress Project with Sanity CLI Source: https://github.com/nuotsu/sanitypress/blob/main/README.md This command initializes a new Next.js project using the SanityPress template via the Sanity CLI. Ensure you have Node.js and npm installed. The command downloads the template and sets up the basic project structure. ```sh npm create sanity@latest -- --template nuotsu/sanitypress ``` -------------------------------- ### Import Demo Dataset into Sanity Studio Source: https://github.com/nuotsu/sanitypress/blob/main/README.md Imports a pre-configured demo dataset into your Sanity Studio. This is useful for quickly populating your CMS with example content and seeing how the frontend components render. The dataset is provided as a tar.gz archive. ```sh sanity dataset import src/sanity/demo.tar.gz ``` -------------------------------- ### Clone SanityPress Repository Source: https://github.com/nuotsu/sanitypress/blob/main/CONTRIBUTING.md This snippet shows how to clone the SanityPress repository to your local machine after forking it. It requires Git to be installed. ```shell git clone https://github.com/your-username/sanitypress.git ``` -------------------------------- ### Configure Environment Variables for Sanitypress Source: https://github.com/nuotsu/sanitypress/blob/main/README.md Sets up essential environment variables for the Sanitypress project, including the base URL, Sanity project ID and dataset, and API tokens. These variables are crucial for the application's functionality and integration with external services like Sanity.io and GitHub. ```ini NEXT_PUBLIC_BASE_URL="" NEXT_PUBLIC_SANITY_PROJECT_ID="" NEXT_PUBLIC_SANITY_DATASET="" SANITY_API_READ_TOKEN="" NEXT_PUBLIC_GITHUB_TOKEN="" ``` -------------------------------- ### Create New Branch for Changes Source: https://github.com/nuotsu/sanitypress/blob/main/CONTRIBUTING.md This command demonstrates how to create a new branch in your local Git repository to work on a specific feature or bug fix. This helps in organizing your contributions. ```shell git checkout -b feature-or-bugfix-name ``` -------------------------------- ### Push Branch to Remote Repository Source: https://github.com/nuotsu/sanitypress/blob/main/CONTRIBUTING.md This command pushes your local branch with its commits to your remote repository (fork). This makes your changes available for a pull request. ```shell git push origin feature-or-bugfix-name ``` -------------------------------- ### Commit Changes with Message Source: https://github.com/nuotsu/sanitypress/blob/main/CONTRIBUTING.md This snippet illustrates how to commit your staged changes to your local branch with a descriptive message. It's important to reference issue numbers if applicable. ```shell git commit -m "Brief description of changes" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.