{"id":18584209,"url":"https://github.com/brob/nextjs-sanity-commenting-start","last_synced_at":"2025-04-10T12:30:35.565Z","repository":{"id":140976002,"uuid":"305462928","full_name":"brob/nextjs-sanity-commenting-start","owner":"brob","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T02:37:35.000Z","size":313,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-11T15:46:43.065Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brob.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-10-19T17:30:37.000Z","updated_at":"2022-04-29T05:07:36.000Z","dependencies_parsed_at":"2023-12-15T03:50:35.310Z","dependency_job_id":null,"html_url":"https://github.com/brob/nextjs-sanity-commenting-start","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnextjs-sanity-commenting-start","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnextjs-sanity-commenting-start/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnextjs-sanity-commenting-start/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnextjs-sanity-commenting-start/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brob","download_url":"https://codeload.github.com/brob/nextjs-sanity-commenting-start/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223436097,"owners_count":17144696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T00:26:39.042Z","updated_at":"2024-11-07T00:26:39.646Z","avatar_url":"https://github.com/brob.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js blog with comment section\n\nThis is a starting point for a demo of how to add a simple comment section to blog post using [Next.js](https://nextjs.org), [Sanity.io](https://www.sanity.io), and [Vercel](https://vercel.com).\n\nInterested in how it was made? See [how to build a commenting engine with Sanity and Next.js on CSS Tricks](https://css-tricks.com).\n\n## Getting up and running\n\nThere are two directories for this project: \n\n* `blog-frontend` - Next.js frontend for the blog\n* `studio` - Sanity Studio for content editing\n\n### Running the front-end\n\nInside the `blog-frontend` directory, you'll need to create a `.env.local` file to store a few environment variables that Next will use to pull data from the Sanity API.\n\n```js\nNEXT_PUBLIC_SANITY_PROJECT_ID=\"project-id-from manage.sanity.io\"\nSANITY_API_TOKEN=\"API-TOKEN-FROM MANAGE.SANITY.IO\"\nSANITY_PREVIEW_SECRET=\"Preview-secret-for-live-preview\"\n```\n\nOnce those env variables are ready, you can run the following commands to get Next's development server up and running:\n\n```bash\ncd blog-frontend\n\nnpm install\n\nnpm run dev\n```\n\nThe blog will be running at `http://localhost:3000`\n\n### Running Sanity Studio\n\nTo run the Sanity Studio locally, you'll need to run the following commands:\n\nFirst install the Sanity CLI: `npm install -g @sanity/cli`.\n\n```bash\n# From the project root\ncd studio\n\nnpm install\n\n# Sanity init will let you reconfigure the Studio to use your project ID and dataset\nsanity init\n\nsanity start\n```\n\nThe Studio will be running at `http://localhost:3333`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Fnextjs-sanity-commenting-start","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrob%2Fnextjs-sanity-commenting-start","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Fnextjs-sanity-commenting-start/lists"}