Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brob/sanity-classroom-studio-template-dir-test

Classroom Studio
https://github.com/brob/sanity-classroom-studio-template-dir-test

Last synced: 10 days ago
JSON representation

Classroom Studio

Awesome Lists containing this project

README

        

# Sanity Classroom Studio
reconfigure
This Studio was created with the idea of an online (or in person) classroom.

It comes set up with a Schema for a Classroom, which has a roster of students,staff (teachers and teaching assistants), and a Syllabus. The Syllabus schema has lessons that are given dates.

This Starter was created live during Sanity's ["Schema with the Sun"](https://www.twitch.tv/videos/748571021) schemathon live stream.

## Running the Studio from the Starter

When you use the 1-click installer, you'll get only what you need for the Studio itself. After you clone it locally, you can run the following commands to get up and running.

```sh
cd studio
sanity install
sanity start
```

## Running the template (for developing the Starter)

This repository isn't your typical Sanity Studio. That exists inside the `/templates/studio` directory and is what you get from clicking the Create button. This is a template to create a [1-click Starter](https://sanity.io/create). If you want to help maintain this Starter, you'll need to install the `sanity-template` CLI.

```sh
npm i -g sanity-template
```

Then in the root directory, you can run a watcher with the CLI to watch the files in the `/template` directory for changes. The changes are then built in the `/build` directory. On first run, you'll need to run `sanity install` and `sanity start` in the `/build/studio` directory.

Adjust the variables in `template-values-development.json` to match a Sanity project you create and then run:

```sh
sanity-template watch --template-values template-values-development.json
```

### Working Directory: `/template/studio`
### Directory to run the Studio: `/build/studio`