https://github.com/tomasbankauskas/next-js-blog-with-comments
https://github.com/tomasbankauskas/next-js-blog-with-comments
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomasbankauskas/next-js-blog-with-comments
- Owner: TomasBankauskas
- Created: 2021-04-15T08:22:21.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-15T08:22:32.000Z (about 4 years ago)
- Last Synced: 2025-02-10T04:26:48.138Z (4 months ago)
- Language: JavaScript
- Homepage: next-js-blog-with-comments-kappa-five.vercel.app
- Size: 287 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js blog with comment section
This is 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).
### 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](https://manage.sanity.io).
Once those env variables are ready, you can run the following commands to get Next's development server up and running:
```bash
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`.