A hands-on course · 22 lessons · about 4.9 hours

Astro
from Scratch

Build a complete site with a header, sections, navigation, and a blog. Learn by doing, one small lesson at a time, ship it live on Vercel, then plug it into WordPress.

What you'll build

A website for Sunday Supper Co., a small catering business. It has a homepage with a hero and service cards, an About page written in Markdown, and a blog with a page for every post.

Along the way you'll create reusable components, style everything with CSS, and work with real content using Markdown and JSON. When you're done, swap in your own business and you have a site you can actually use.

The last module turns it into a headless WordPress site: editors write in WordPress, Astro builds the pages, and every publish updates the live site.

Stuck? Download the finished project and compare:Markdown version ·WordPress version

What you'll learn

  1. 01Set up a project in Astro
  2. 02Create and reuse components
  3. 03Add and organize styles
  4. 04Use slot components
  5. 05Import data from JSON files
  6. 06Build and display blog posts
  7. 07Work with Markdown and frontmatter
  8. 08Set up routes and deploy your site
  9. 09Run Astro as a frontend for a WordPress backend
  10. 10Rebuild the site automatically when you publish in WordPress

Before you start

Lessons

Progress saves in this browser as you mark lessons complete.

Keep going

Finished? Contentful from Scratch picks up where this course ends. Design a content model, feed it into Astro, rebuild on publish, and decide whether a headless CMS fits your team.