Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/brob/sanity-classroom-studio-template-dir-test
- Owner: brob
- Created: 2020-11-12T19:47:55.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-16T10:59:55.000Z (about 1 year ago)
- Last Synced: 2024-11-07T00:29:27.793Z (about 2 months ago)
- Language: JavaScript
- Size: 296 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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`