Let's first Up the Backend with Sanity CMS then we will go to Frotend, to display structured data's via Sanity SDK and React HOOK
Sanity is the most flexible platform for building data driven content solutions.
Next.js gives the best developer experience with all the features you need for production: hybrid static & server rendering, TypeScript support, smart bundling, route pre-fetching, and more. No config needed.
React.js JavaScript library for building interactive user interfaces
npm i
sanity start
it will up the backend server to create schemas then access those schemas on frontend.
Open http://localhost:3333 with your browser to see the result.
Step 3: Now we are good to go ahead with Frontend, Run the below command, install the required packages:
npm i
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
If you get stuck, the Sanity community I was talking about can be found here on the Sanity Exchange (https://www.sanity.io/exchange) and the Sanity Slack Community (https://slack.sanity.io/).
Enjoy Coding!