GithubHelp home page GithubHelp logo

blueflylin / astro-blog-sanity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from barryjacobs/astro-blog-sanity

0.0 0.0 0.0 567 KB

Astro Blog Demo Project (SSR)

Home Page: https://resilient-pavlova-922456.netlify.app/

JavaScript 0.55% TypeScript 9.96% XSLT 66.74% CSS 10.82% Astro 11.93%

astro-blog-sanity's Introduction

Astro Sanity Blog Demo

Overview

This is the next stage of the Astro blog demo but this time incorporating Sanity CMS to provide content rather than SSG via MDX files, in the original astro-blog repository.

A demo of the site can be found here.

Bun

I've used Bun as the package manager and local dev server. The offical documentation can be found here.

Commands

All commands are run from the root of the astro-blog folder, from a terminal:

Command Action
bun install Installs dependencies
bun --bun astro dev Starts local dev server at localhost:4321
bun --bun astro build Build your production site to ./dist/
bun --bun astro preview Preview your build locally, before deploying
bunx astro add react Use Astro integrations with astro add command

Sanity Studio

Sanity provides a customisable React based project called Sanity Studio for managing your CMS content on a per project basis. The application supports both a content management system and a query tool for testing relational queries.

Sanity uses GROQ (Graph-Relational Object Queries) for accessing data. The documentation for GROQ can be found here.

For further information regarding integration with Sanity please read the documentation here.

Additional links:

Environment Variables

Once you have created a project on the sanity.io website, you will need to copy the .env.template files to .env versions, in both project directories, and populate with the values for your project. These environment variables can then be provided via Netlify or any other hosting provider you choose but I would highly recommend this platform.

astro-blog-sanity's People

Contributors

barryjacobs 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.