Create a free account to get access to additional free training videos. Enjoy this free video from CraftQuest! Create a free account to get access to additional free training videos. Join the Community
A quick overview of what Astro is, and why we'll learn it in this course.
Welcome to the Astro Quick-Start Guide!
In this course, we will learn the fundamentals of Astro and how to use Craft CMS as the content source in a headless Craft CMS setup.
Before we jump in, let’s set the table on what Astro is and how it works. During the course, we’ll cover building a site with Astro step-by-step; but let’s review Astro.
Astro is a modern, JS-based framework with a mission to build fast, content websites. What makes it different than other frameworks is that it is a multi-page app (or MPA) framework. Astro isn’t the only MPA framework out there, but you’re probably used to them using some server-side language like PHP. Astro is just HTML, CSS, and JavaScript.
But with Astro you don’t ship any JavaScript; it’s only used for the build, and the output from Astro is a static site. However, if you want to use JavaScript to hydrate part of your templates dynamically, you can do that, too.
Astro also lets you BYOF or “Bring Your Own Framework.” You can use React, Svelte, Vue, or any modern JS framework you’re comfortable with.
But the best thing about Astro, especially for developers used to working in Craft CMS, is that it is approachable and straightforward. The tooling isn’t complex (built on Vite), and the templating via Astro Components can be as simple as you want. The ability to choose your content course (from Markdown to GraphQL) makes it flexible and the first JavaScript framework you should try if you haven’t used one before.
That being said, Astro isn’t a “sprinkle framework” like petite-vue or Alpine.js. We’re not using it to add reactivity to our site or application pages. Instead, we’re using Astro to build an entire site, shipping zero or near-zero JavaScript and having an enjoyable developer experience while we’re doing it.
Astro Quick-Start Guide is made up of the following videos: