- 1 Blast Off! Introduction to Astro The 'Why' Before the 'How': What is Astro?Demystifying the Islands Architecture ๐๏ธSetting Up Your First Astro Project (CLI Magic)Project Anatomy: Understanding the Folder Structure
- 2 Core Fundamentals: Pages & Routing File-based Routing: Structuring Your URLsDynamic Routing: Handling Multiple Pages ElegantlyPage Layouts: Creating Consistent DesignsThe 404 Page: Handling Missing Routes
- 3 Mastering .astro Components The Component Script vs. Component Template (HTML meets JS)Passing Data Downward with Props ๐Slots: Building Reusable Wrappers and LayoutsUnderstanding Fragments and HTML Directives
- 4 Styling Your Astro Universe Scoped CSS: Styling Without Global Leaks ๐จGlobal Styles and CSS VariablesIntegrating Tailwind CSS with AstroUsing CSS Preprocessors (Sass/SCSS) Easily
- 5 Content Creation: Markdown & MDX Writing Static Pages with Markdown (.md)Frontmatter: Managing Metadata for Your PostsSupercharging Content with MDX (.mdx)Creating Custom Markdown Layouts
- 6 Content Collections: Robust Data Management What are Content Collections? (Type-Safe Content!)Defining Strict Content Schemas with Zod ๐ก๏ธQuerying and Rendering Collection DataHandling Relationships Between Different Collections
- 7 Bringing Interactivity: UI Frameworks & Islands Adding React, Vue, or Svelte to Your Astro AppClient Directives: Controlling Hydration (client:load, client:visible)Passing Props from Astro to UI Framework ComponentsVanilla JS Interactivity: Proper Use of <script> Tags
- 8 Data Fetching & APIs Fetching Remote Data at Build Time ๐Creating Custom API Endpoints (.js/.ts routes)Handling External JSON Data and REST APIsError Handling Strategies in Data Fetching
- 9 State Management Across Islands The Challenge of State in an Islands ArchitectureIntroduction to Nano Stores ๐๏ธSharing State Between Different Frameworks (e.g., React to Vue)Persisting State Across Refreshes (LocalStorage Integration)
- 10 Server-Side Rendering (SSR) & Dynamic Astro Static (SSG) vs. Server (SSR) Output ModesAdding and Configuring an SSR Adapter (Node, Vercel, Netlify)Working with Astro.request and Astro.responseManaging Cookies and Basic Authentication Flows
- 11 Middleware: Intercepting Requests What is Middleware in Astro?Modifying Responses and Appending HeadersPassing Context Data Across Routes with Astro.locals ๐ต๏ธProtecting Routes (Authentication Checks in Middleware)
- 12 View Transitions: Seamless App-like Navigation Enabling View Transitions in the Astro Router ๐Customizing and Directing Transition AnimationsPreserving UI State Across Page Loads (transition:persist)Managing Client-side Script Lifecycles with Transitions
- 13 Astro DB: The Built-in Database Introduction to Astro DB and Project SetupDefining Your Database SchemaQuerying and Inserting Data (Drizzle ORM Syntax)Seeding Dummy Data for Local Development
- 14 Optimization & SEO Best Practices The Astro <Image /> Component: Perfect Web Vitals ๐ผ๏ธManaging <head> Tags and Dynamic SEO MetadataGenerating Automated Sitemaps and RSS FeedsLink Prefetching for Blazing Fast Navigation
- 15 Going Live: Deployment & CI/CD Building for Production: The `astro build` CommandDeploying a Static Site (GitHub Pages / Netlify)Deploying an SSR Application (Vercel / Cloudflare)Setting up Continuous Integration (GitHub Actions)