Choose your language
Build Fast Websites with Astro Course
More than 2 million students worldwide

Build Fast Websites with Astro Course

Astro is the modern framework built for speed — and this course shows you exactly how to use it. Learn to build blazing-fast static and hybrid websites, integrate headless CMS platforms, and deploy to production with confidence. From island architecture to content collections, every lesson is hands-on and immediately applicable.

Dedika for businesses

What you will learn:

  • Configure Astro's file-based routing to generate static and dynamic pages at scale.

  • Build reusable components with scoped styles, typed props, and flexible slot composition.

  • Integrate REST APIs and headless CMS platforms into Astro's build-time data pipeline.

  • Implement selective hydration using client directives to ship minimal JavaScript to browsers.

  • Optimize images, fonts, and CSS assets to achieve top Lighthouse and Core Web Vitals scores.

  • Automate deployments with CI/CD pipelines and SSR adapters for serverless and edge runtimes.

How you study in practice Build Fast Websites with Astro Course

How you practice Build Fast Websites with Astro Course

For companies looking to train their teams

With Dedika for businesses, the course includes exercises and examples tailored to your own business and the way your company needs.

Click here

Course Content

8 Chapters • 38 LessonsDuration between 4 and 360 hours (you decide)

Chapter 1See details

Introduction to Astro and Static Sites

  • Lesson 1 • Running and Previewing Your First Site

    Teaches dev-server commands, hot reload behavior, and the production build preview. Students ship a live local page by the end of this section.

  • Lesson 2 • Astro Project Structure Overview

    Maps every folder and file in a freshly scaffolded project. Students gain the mental model needed to navigate and extend any Astro codebase.

  • Lesson 3 • Setting Up Your Development Environment

    Guides installation of Node.js, a package manager, and the Astro CLI. Ensures every student has a runnable local environment before proceeding.

  • Lesson 4 • What Is Astro and Why Use It

    Covers Astro's core value proposition versus traditional frameworks. Grounds students in the performance-first philosophy before writing any code.

Chapter 2See details

Astro Components and Templating

  • Lesson 1 • Scoped Styles and Global CSS

    Explains Astro's automatic CSS scoping and how to opt into global styles. Students control styling without class-name collisions.

  • Lesson 2 • Expressions and Dynamic Content

    Teaches JSX-like expressions, conditional rendering, and list iteration inside templates. Students render dynamic data without shipping JavaScript to the browser.

  • Lesson 3 • Anatomy of an .astro File

    Breaks down the frontmatter fence, template body, and scoped styles in one file. Establishes the component model used throughout the rest of the course.

  • Lesson 4 • Props and Component Composition

    Covers typed props, default values, and slot-based composition. Students build flexible, reusable UI blocks that accept external data.

  • Lesson 5 • Layouts and Shared Structure

    Introduces layout components that wrap page content with consistent headers and footers. Students eliminate repeated markup across all pages.

Chapter 3See details

Pages, Routing, and Navigation

  • Lesson 1 • Navigation Components and Active States

    Builds reusable nav components that highlight the current page. Students apply Astro.url to drive active-link logic without client JavaScript.

  • Lesson 2 • File-Based Routing Fundamentals

    Maps file paths in src/pages/ to browser URLs automatically. Students understand how Astro converts folder structure into navigable routes.

  • Lesson 3 • Dynamic Routes with getStaticPaths

    Teaches bracket-syntax route files and the getStaticPaths function for pre-rendering parameterized pages. Students generate hundreds of pages from a single template.

  • Lesson 4 • Pagination of Large Content Sets

    Covers Astro's built-in paginate() helper for splitting collections across multiple pages. Students build numbered pagination UI with correct URLs.

Chapter 4See details

Content Collections and Markdown

  • Lesson 1 • Content-Driven Dynamic Routes

    Combines getStaticPaths with getCollection to generate one page per content entry. Students build a fully automated blog or docs route system.

  • Lesson 2 • Markdown Basics in Astro

    Renders Markdown files as pages and explains frontmatter parsing. Students convert plain text content into styled HTML pages immediately.

  • Lesson 3 • Querying and Rendering Collections

    Covers getCollection(), getEntry(), and rendering entry bodies. Students pull collection data into pages and dynamic routes efficiently.

  • Lesson 4 • MDX for Rich Interactive Content

    Adds the MDX integration to embed components inside Markdown. Students author content that mixes prose with interactive UI elements.

  • Lesson 5 • Defining Content Collections

    Introduces the src/content/ directory and the defineCollection API. Students organize content into typed, queryable groups with schema validation.

Chapter 5See details

Data Fetching and API Integration

  • Lesson 1 • Server-Side Rendering and Hybrid Mode

    Enables SSR output mode and per-page prerender overrides. Students choose static or dynamic rendering at the route level.

  • Lesson 2 • Build-Time Data Fetching

    Uses top-level await in frontmatter to call APIs during the build. Students embed live external data into fully static HTML output.

  • Lesson 3 • API Routes and Endpoints

    Creates .ts endpoint files in src/pages/ that return JSON or other responses. Students build lightweight backend endpoints without a separate server.

  • Lesson 4 • Environment Variables and Secrets

    Manages API keys with .env files and Astro's import.meta.env. Students keep credentials out of source control and client bundles.

  • Lesson 5 • Connecting to Headless CMS Platforms

    Integrates a headless CMS API into Astro's build pipeline. Students replace hardcoded content with editor-managed data from an external source.

Chapter 6See details

Islands Architecture and UI Frameworks

  • Lesson 1 • Understanding the Islands Architecture

    Explains how Astro isolates interactive components from static HTML. Students grasp why selective hydration outperforms full-page JavaScript bundles.

  • Lesson 2 • Performance Profiling of Islands

    Measures JavaScript bundle size and hydration timing using browser DevTools. Students validate that island usage meets performance budgets.

  • Lesson 3 • Client Hydration Directives

    Covers client:load, client:idle, client:visible, and client:only directives. Students pick the right hydration strategy for each interactive component.

  • Lesson 4 • Sharing State Between Islands

    Uses nano stores or context patterns to synchronize state across isolated islands. Students build cohesive UIs without a global framework runtime.

  • Lesson 5 • Adding a UI Framework Integration

    Installs and configures a framework integration such as React or Svelte via astro add. Students run framework components inside an Astro project.

Chapter 7See details

Styling, Assets, and Optimization

  • Lesson 1 • Astro Image Component and Optimization

    Uses the built-in Image and Picture components to automate format conversion and resizing. Students eliminate render-blocking images without manual tooling.

  • Lesson 2 • Static Asset Handling

    Explains the difference between src/assets/ and public/ for asset management. Students choose the correct location for each asset type.

  • Lesson 3 • Build Output Analysis and Optimization

    Audits the dist/ folder and Lighthouse report to find optimization opportunities. Students reduce total page weight and improve Core Web Vitals scores.

  • Lesson 4 • CSS Frameworks and Preprocessors

    Integrates Tailwind CSS or a CSS preprocessor via Astro integrations. Students apply utility-first or preprocessed styles without build-tool friction.

  • Lesson 5 • Fonts and Typography Performance

    Loads web fonts efficiently using font-display strategies and self-hosting. Students prevent layout shift caused by late-loading typefaces.

Chapter 8See details

Deployment, CI/CD, and Production

  • Lesson 1 • Automating Builds with CI/CD

    Sets up automated build and deploy pipelines triggered by Git pushes. Students eliminate manual deployments and catch errors before they reach production.

  • Lesson 2 • Static Deployment to CDN Platforms

    Deploys the dist/ output to edge CDN platforms with zero-config adapters. Students go from local build to live URL in minutes.

  • Lesson 3 • SSR Deployment with Adapters

    Installs platform-specific Astro adapters for Node.js, edge, or serverless targets. Students deploy SSR-enabled sites to the correct runtime.

  • Lesson 4 • Monitoring and Rollback Strategies

    Integrates uptime monitoring and uses platform rollback features to recover from bad deploys. Students maintain site reliability after launch.

  • Lesson 5 • Redirects, Headers, and Edge Config

    Configures redirects and custom HTTP headers through Astro config or platform files. Students enforce security headers and manage URL migrations.

Certification

Your valid completion certificate

This course is for you:

  • Freelance web developer: wants a competitive edge through faster client deliverables.

  • React or Vue developer: frustrated by excessive JavaScript overhead on content sites.

  • Jamstack enthusiast: ready to move beyond basic static generators to a structured framework.

  • Digital agency developer: needs a reliable, scalable workflow for multi-client projects.

  • Career changer from design: building a technical portfolio to break into front-end development.

  • Blogger or indie maker: wants full control over site performance without hiring a developer.

What our students say

Your classes are perfect. I purchased the one-year package and finally have the opportunity to follow various topics of interest without needing to switch platforms... I thank you for everything you do, I've already recommended you to other people...
Giulio Carlo
Giulio CarloDigital Marketing Student
I like how the lessons are straight to the point and how I can switch chapters and skip content I don't need.
Mariana Ferres
Mariana FerresPhotography Student
I like the content and the presentation style and video transcription, which speeds up the process!
Luciana Alvarenga
Luciana AlvarengaNail Design Student
The platform is fast, simple to use. The diversity of content and complementary videos really help with learning.
André Felipe
André FelipePrompt Engineering Student

Top trainings

FAQ

Who is Dedika?

Is the certificate valid in United States?

Are the courses free?

What is the course workload?

What are the courses like?

How do the courses work?

What is the duration of the courses?

What is the cost or price of the courses?

What is an EAD or online course and how does it work?

PDF Course