https://github.com/treefarmstudio/fresh-sanity
A demo using Fresh and Sanity
https://github.com/treefarmstudio/fresh-sanity
Last synced: about 1 month ago
JSON representation
A demo using Fresh and Sanity
- Host: GitHub
- URL: https://github.com/treefarmstudio/fresh-sanity
- Owner: treefarmstudio
- Created: 2022-12-27T17:19:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-27T21:18:07.000Z (over 3 years ago)
- Last Synced: 2025-02-26T07:34:17.144Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://fresh-sanity.deno.dev/
- Size: 227 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fresh + Sanity Demo
This is a demo using Deno's [Fresh](https://fresh.deno.dev) and [Sanity](https://www.sanity.io/).
It includes a skeleton Sanity Studio using v3 for you to create your own schemas.
## Fresh
If you have a sanity project already copy the .env.template to a .env file then add your project id, dataset, and api version.
Start the fresh server:
```
cd fresh
deno task start
```
This will watch the project directory and restart as necessary.
## Sanity
You can learn more about Sanity [here](https://www.sanity.io/docs).
Initialize a Sanity project:
```
cd sanity
npx sanity init
```
Start the Sanity Studio:
Add your own schemas to `sanity/schemas` and start the studio:
```
cd sanity
npx sanity dev
```