If you haven't heard about Astro yet you're missing out. This starter repo gives you a blog website with a headless CMS setup using Sanity.io.
Don't be fooled by the simplicity of this starter either. With excellent SEO built in, Astro's excellent developer environment, and performance best practices you're getting one of the best foundations for a personal blog with posts written in markdown. The reason for making such a bare bones starter in terms of styles is that it has what you need out of the box for SEO and site structure but it makes no assumptions about how you want it look and behave.
Sometimes starters can feel like they are giving us way too much and you'll spend a day picking apart half of the code to get to the setup you actually wanted. Want to use vanilla CSS instead of Tailwind or Scss? No problem!
Watch my step-by-step tutorial on YouTube
Or
Follow the manual steps below:
npm install -g @sanity/cli
cd sanity
sanity install
sanity init
and follow the prompts (you will need to create a Sanity account if you haven't already).env.template
to .env
and Note: You will want to add http://localhost:3000 to your allowed CORS orgins in your Sanity project settings at https://manage.sanity.io
sanity install
sanity start
npm install
npm start
npm run build
to build to production locally