Essential CSS
JavaScript Roadmap
Learn JavaScript
Mastering Web Typography
Practical Astro
Understanding Async JS
Unorthodox Tailwind
API Masterclass
Build and Deploy
The Beginner Freelancer
Real World Node
Profile Billing Logout
Build and Deploy
Lesson Plan
  1. Workshop Recordings
    1. Welcome to Build and Deploy!
    2. Important notes before you begin
    3. 📹 Session 1
    4. 📹 Session 2
    5. 📹 Session 3
    6. 📹 Session 4
    7. 📹 Session 5
    8. 📹 Session 6
    9. 📹 Session 7
    10. 📹 Session 8
    11. Next steps

📹 Session 1

1m:55s
28m:41s

This is where it all begins.

In this session you’re going to understand how Astro works — (it’s very simple) — so you can easily create HTML pages with it.

You’ll be able to:

  • Create layout templates
  • Create an unlimited number of pages you want
  • Create page templates for use with different pages
  • How to use variables and other nifty templating features

Finally, you’’ll learn to deploy the website onto Netlify so you can show the world your creation.

Source Code

Here’s a link to the Github repository

Timestamps

  • 0:00 Introduction
  • 6:00 Why Astro
  • 9:00 Installing Astro
  • 12:30 Understanding Astro’s directory structure
  • 14:30 Hotreloading
  • 15:30 Astro Syntax Highlighting
  • 18:50 Building pages in Astro
  • 22:10 Creating layouts
  • 23:22 Using layouts
  • 24:50 Understanding slots
  • 27:30 Creating other pages with layouts
  • 28:30 Creating the navigation
  • 30:00 Intermission Q&A
  • 33:30 Creating a basic page template that uses Markdown
  • 35:00 Passing properties to layouts
  • 37:00 Using variables in Astro
  • 40:00 Using the basic page template with a Markdown file
  • 43:00 Getting props from Markdown files
  • 45:30 Improving the page template
  • 46:50 Deploying to Netlify
  • 50:00 Building the project
  • 51:15 Previewing the project on your own computer
  • 52:30 Updating the deployed website
  • 55:41 Questions and answers

Changes to work with Astro v3.0.0

Astro removed native support for Markdown files in Astro 2.0.0. Unfortunately, this means the examples I show you in the video above doesn’t work anymore.

But thankfully, Astro replaced it with something even better — MDX.

MDX is basically markdown on steroids. It lets you write components inside Markdown files so it completely the building experience (for the better).

Please refer to the MDX integration to install MDX.

After installing MDX, change the .md extensions in the above video to .mdx and the code above would work.

Further Notes

If you’re new to Git, you might want to check out my Git beginner video series on Youtube.

I figured out how to make Astro formatting work with Prettier and ESLint. I haven’t had a chance to write this up yet. If I do, I’ll link this chapter to the instructions to do so.