Modeling content with schemas
The schema is the heart of Sanity. It is a file that defines the structure of an entity, which could either represent something physical that occurs in nature, for example, a person, such as an author, or something abstract, such as a category, as demonstrated in Chapter 3, Exploring Sanity Studio. These structures and the collections of them, optionally linked together, are what drives the user experience in Sanity Studio.
In the next sections, we will clone the project, and work with the project's schemas.
Cloning the project
In Chapter 3, Exploring Sanity Studio, the create
tool automatically created a repository in GitHub. To clone a repository, the git
command-line tool is needed. Git is a source code management tool created by the inventor of the Linux kernel, Linus Torvalds. Installation instructions for each operating system can be found at https://git-scm.com/.
Following the standard steps for cloning a repository, type the following...