evenwestvang / next-js-blog-with-comments-256

Home Page:next-js-blog-with-comments-2.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js blog with comment section

This is a demo of how to add a simple comment section to blog post using Next.js, Sanity.io, and Vercel.

Note: You automatically have an env variable for your dataset and project id, but you'll need to create a token in manage.sanity.io to allow the Starter's comments to post to your Studio

Running the front-end

Rename the .env.test file to .env and store the environment variables that Next and Sanity will use to pull data from the Sanity API. You can get or create the tokens, ids, and secrets from manage.sanity.io.

Once those env variables are ready, you can run the following commands to get Next's development server up and running:

npm install

# Run the frontend
npm run dev

# Run the Studio
npm run start:sanity

The blog will be running at http://localhost:3000, the Studio will run at http://localhost:3333.

About

next-js-blog-with-comments-2.vercel.app


Languages

Language:JavaScript 98.8%Language:CSS 1.2%