Courses

Learn Astro

15 lessons ยท 0 completed

Start
0%
  1. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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)