Giter VIP home page Giter VIP logo

sanity-basic's Introduction

Sanity-Basic

A simple small project to get familiar with Sanity CMS and all it's features.

Introduction

This project is an exploration of next.js and Sanity CMS combined. It is meant to be used as a learning tool for implementing Sanity, using it for CRUD operations and back-end content management.

Setup

Setup an account at https://www.sanity.io/

Start a new project on the dashboard, and for your first project copy the CLI they provide.

It will connect your local environment to your dashboard.

If it is your 2nd project follow the setup below:

CLI Setup

  • Create Next.js typescript application

npx create-next-app@latest sanity-basic --typescript --tailwind --eslint

next-setup
  • Create Sanity Project and connect to your Sanity dashboard

npm -y create sanity@latest

next-setup
  • Not sure if this is something wrong on my end, or what. Will update this section if I figure it out. But need to add quotes to the tsconfig.json target.
next-setup

How It Works

On the backend sanity schamas are setup, similar to react form schemas. These schemas are automatically added to the database and the content management system once built. To access the data on the front-end Sanity uses GROQ queries. These are simple strings attached to a fetch query that selective read the values in the string.

sanity-basic's People

Contributors

triv2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.