A headless CMS separates where content is written from where it is shown, so one set of content can feed a website, an app and other channels. Strapi is an open-source CMS you can self-host; Sanity is a hosted content platform with a customisable editing studio. This course teaches content modelling first, then builds real projects with both, so you can choose and use the right one for each client.
What you'll learn
- When a headless CMS makes sense, and when a traditional CMS is simpler
- Content modelling: types, references, reusable components and rich text
- Strapi 5: content types, components, dynamic zones and the Document Service API
- Strapi roles, permissions, API tokens and self-hosting options
- Sanity Studio: schemas, custom inputs, structure and editor experience
- Querying Sanity with GROQ and working with Portable Text
- Fetching content in Next.js and Astro, with caching and revalidation
- Draft previews and visual editing so editors see changes before publishing
- Webhooks for rebuilds and cache purges, and handling images and media
- Localisation, migrations and moving content between environments
Who it's for
- Frontend developers building content-driven sites for clients
- Teams moving off a traditional CMS to a modern frontend stack
- Developers who need to give non-technical editors a good writing experience
Prerequisites
- Comfortable with JavaScript or TypeScript and REST APIs
- Experience with a frontend framework (see Next.js App Router in Practice or Astro for Fast Content Sites)
- Node.js installed
Outcomes
By the end of this course you will be able to:
- Design a content model that serves editors and multiple frontends.
- Set up and configure both Strapi and Sanity for a real project.
- Connect a CMS to a frontend with previews and on-demand updates.
- Compare headless CMS options on cost, hosting and editor needs.
Course outline
| Module | Topic |
|---|---|
| 1 | Headless CMS concepts and trade-offs |
| 2 | Content modelling principles |
| 3 | Strapi setup, content types and components |
| 4 | Strapi APIs, permissions and tokens |
| 5 | Sanity Studio setup and schemas |
| 6 | GROQ queries and Portable Text |
| 7 | Customising the editor experience |
| 8 | Connecting Next.js and Astro frontends |
| 9 | Previews, drafts and visual editing |
| 10 | Webhooks, caching and images |
| 11 | Localisation, migrations and deployment |
| 12 | Project: a multi-page marketing site on a headless CMS |
FAQ
Strapi or Sanity: which should I pick?
Strapi suits teams that want open source and full control over hosting and data. Sanity suits teams that want a managed backend and a highly customisable studio. We compare them on real criteria.
What about other headless CMSs?
Contentful, Payload and others follow similar ideas. The content modelling and integration skills transfer directly.
Can WordPress be headless?
Yes, through its REST API or GraphQL plugins. We discuss when that is a sensible option.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.