Giter Site home page Giter Site logo

jorytindall / sanity-template-svelte-kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sanity-io/sanity-template-svelte-kit

0.0 0.0 0.0 20.7 MB

A minimal, fully customizable SvelteKit front-end powered by Sanity.io data.

Home Page: https://www.sanity.io/create?template=sanity-io%2Fsanity-template-svelte-kit

JavaScript 53.29% HTML 1.61% Svelte 45.10%

sanity-template-svelte-kit's Introduction

SvelteKit / Sanity.io starter

Front-end for your Sanity project, built with Svelte Kit.

This template repo is used by Sanity.io to easily create deployed and configured projects through a web interface. You can test it by creating this project.

The template contains both a Sanity.io Sanity Studio and a front-end in Svelte Kit. Both are deployed on Netlify.

The Sanity and SvelteKit powered template

Want to make a template for Sanity and your favorite front-end framework? We’re still maturing sanity.io/create and our APIs, but do tell us about it on slack.sanity.io.

Local development

Developing the front-end

  1. Install dependencies with npm install or yarn in the root folder.
  2. Run npm run dev in root folder.
  3. The website will be running in localhost:3000

Developing the Sanity studio

  1. From the studio folder, install dependencies with yarn or sanity install (if you have the Sanity CLI installed)
  2. Then, run yarn start
  3. Your studio will be running in localhost:3333

Starting with the local template

If you don't want to start from the automatically deployed project, you can clone this repository and replace the variables found in studio/sanity.json with your Sanity project's credentials.

Credits

Huge thanks to Jacob Størdahl for their help in scoping and bringing this starter to life with a lot of positive energy. Thank you, Jacob 🙏

Developing

Start by installing dependencies with npm install (or pnpm install or yarn). Then, start a development server:

npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

Your site should already be connected to Netlify. If you want, you can install any adapter for your target environment. To execute builds locally, run:

npm run build

You can preview the built app with npm run preview, regardless of whether you installed an adapter. This should not be used to serve your app in production.

sanity-template-svelte-kit's People

Contributors

evenwestvang avatar hdoro avatar jorytindall avatar julesjazz avatar rdela 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.