Astro Quick Start Course | Build an SSR Blog

Sdílet
Vložit
  • čas přidán 18. 05. 2024
  • In this course, you will learn the fundamentals of the Astro web framework while building a server-side rendered (SSR) tech blog.
    Final Code:
    github.com/bradtraversy/astro...
    Course Page:
    www.traversymedia.com/astro-q...
    Become a Traversy Media Member:
    www.traversymedia.com/offers/...
    Use the promo TRAVERSYMEMBER to get the first 3 months for $15 per month.
    Timestamps:
    0:00 - Intro
    3:32 - What Is Astro?
    7:35 - Install & Setup
    12:27 - Pages Folder & Routing
    17:26 - Image Component
    24:58 - Component Script
    29:06 - Layout & Slots
    36:45 - Component Props
    39:31 - Using Constants
    42:52 - Navbar & Footer Components
    46:51 - Custom 404 Page
    51:18 - Collections & Markdown
    55:27 - Collection Schema
    58:17 - Querying Collections
    01:07:02 - Format & Sort By Date
    01:12:36 - Article Card Component
    01:15:52 - Homepage Articles
    01:25:08 - Most Recent Article
    01:31:11 - Slug & getStaticPaths
    01:37:12 - SSR Config & Single Article
    01:47:30 - Tags Component
    01:53:18 - Tag Page
    01:59:34 - Footer Tags
    02:04:29 - Search Page
    02:16:15 - API Endpoints
    02:25:55 - Pagination Component
    02:34:05 - Disable Prev & Next
    02:39:36 - Vercel Deployment
  • Věda a technologie

Komentáře • 86

  • @adamkarafyllidis9264
    @adamkarafyllidis9264 Před 25 dny +7

    The friendliest and most familiar voice of web development :)

  • @ashimov1970
    @ashimov1970 Před měsícem +2

    Brad, you are the best front-end development tutor out there on CZcams. God bless

  • @Another0neTime
    @Another0neTime Před 5 měsíci

    You have helped me a ton in my career. Thank you Brad.

  • @tiscover
    @tiscover Před 5 měsíci

    Another great course Brad! I really like the simplicity of Astro

  • @AustroPower
    @AustroPower Před 5 měsíci +1

    Thank you Brad for all the free knowledge and work you put in 👍🙏💯

  • @SpacemanSpiff9406
    @SpacemanSpiff9406 Před 5 měsíci +5

    Brad... you bring an ease, joy, and certain affability to a complicated field that might not otherwise have it without your presence. Thank you for your time and generosity.

  • @pedrotski
    @pedrotski Před 4 měsíci

    Discovered Astro a few days ago. Great course and thanks for releasing it for free.

  • @lacikawiz8369
    @lacikawiz8369 Před 3 měsíci

    Awesome tutorial! Thank you for making it available on CZcams!

  • @alnm951
    @alnm951 Před 5 měsíci

    Thanks for making the course free Brad!

  • @webdevluc
    @webdevluc Před 5 měsíci +9

    Great crash course Brad. Thanks for making it available for free. Astro looks like the next big thing in web dev

  • @user-ru8hn9hb5c
    @user-ru8hn9hb5c Před 5 měsíci

    Thank you so much! Your voice is good to listen to.

  • @johncarlosarmiento7556
    @johncarlosarmiento7556 Před 4 měsíci

    Thanks Brad, really appreciate this free content!

  • @cout0dev
    @cout0dev Před 2 měsíci

    I really appreciate that you teach us so much in such a simple way.

  • @mountains4000
    @mountains4000 Před 5 měsíci +5

    Thank you for the Christmas gift 🎁💝.
    Well wishes to you and your family 💟

  • @isaacorraiz4362
    @isaacorraiz4362 Před 2 měsíci +1

    I just finished. Very nice course Brad. Thanks for everything you do. For me you are the best of the best.

  • @Pew_Pew_Pizza
    @Pew_Pew_Pizza Před 4 měsíci

    Much appreciated. Great work as always.

  • @ceralguy85
    @ceralguy85 Před 2 měsíci +2

    As always Brad, thank you for sharing this great content. This is one of the best tech channels to learn different technologies

  • @felipefs106
    @felipefs106 Před 5 měsíci +1

    Great content and thanks!. I've been using Astro myself and really like it. I usually avoid jumping on new tech bandwagons but Astro looks quite interesting, it gives you structure for a basic website and also gives you choices if you want to build a more robust app

  • @lostinthenarrativve
    @lostinthenarrativve Před 5 měsíci +22

    Can't wait for the Laravel course Brad, hoping to land a PHP role with the help of your courses in 2024 Q1 😝

    • @birsingh5388
      @birsingh5388 Před 5 měsíci +3

      He already published free laravel course on CZcams

    • @mtq2527
      @mtq2527 Před 5 měsíci +1

      I'm also waiting for his laravel course

  • @prashlovessamosa
    @prashlovessamosa Před 5 měsíci +1

    Thank you Brad

  • @patriotlightning7791
    @patriotlightning7791 Před 4 měsíci

    Thank you so much for your efforts! ❤

  • @eladbar1579
    @eladbar1579 Před 5 měsíci

    Thank you Brad! You are the mennn!!! 🔥🔥🔥🔥🔥🔥🔥🔥

  • @martinndegwa7155
    @martinndegwa7155 Před 2 měsíci

    Thank you Brad. This is a nice tutorial.

  • @male3399
    @male3399 Před 5 měsíci +3

    Just in the right time

  • @davidwashington7293
    @davidwashington7293 Před měsícem

    Thank you so much for this course and for all the other courses you share to the dev community. Best intro to Astro I've seen out there yet. Really appreciate everything you do for us. 🚀

  • @lakshyarajdash
    @lakshyarajdash Před 2 měsíci +1

    Amazingly explained each and every concept. I was jumbled up how to paginate posts on my personal portfolio website and now I understood how to do the same.

  • @SkyrimBeast
    @SkyrimBeast Před měsícem

    Thanks for this course Brad, I've been meaning to tinker with Astro. This project looks to be a good starting point to go from understanding Astro to actual implementation.

  • @shadowstack
    @shadowstack Před 5 měsíci +8

    my favorite coding channel using my favorite framework, thanks for making content like this!

    • @Genius-Wave
      @Genius-Wave Před 3 měsíci +1

      💯 thanks to you tooo you both are great

    • @shadowstack
      @shadowstack Před 3 měsíci

      @@Genius-Wave that’s very kind 🙏

  • @nadetdevfullstack7041
    @nadetdevfullstack7041 Před 5 měsíci

    Excellent!

  • @alexanderkomanov4151
    @alexanderkomanov4151 Před 5 měsíci

    Amazing!

  • @gilaguilar7130
    @gilaguilar7130 Před 4 měsíci +1

    Thank you for your invaluable role in my journey to becoming a software developer. Your clear and patient explanations have been a constant guide, especially for someone like me with a less-than-perfect memory. Despite the challenges, your teaching style has made complex concepts accessible and fostered my continuous growth.
    I delved into development in my early 40s, dedicating five years to learning before landing my first job. Understanding my learning process was key, and your content played a pivotal role in that discovery. Your calm and collected manner always serves as a reminder of the ongoing learning journey we're all on.
    Looking ahead, I plan to create Udemy courses on working with colleagues with diverse abilities, inspired by my own experiences. Your impact extends beyond individual growth, influencing how we collaborate and support each other.
    Every new video of yours is a welcomed opportunity for learning and inspiration. Wishing you and your family a joyful holiday season. Cheers! 🤟☕

  • @umairmuhammadabbas3929
    @umairmuhammadabbas3929 Před 5 měsíci

    Anticipated 😲

  • @haroldguzman1285
    @haroldguzman1285 Před 5 měsíci

    galing mo talaga idol!

  • @waleedkh9769
    @waleedkh9769 Před měsícem

    Brilliant

  • @ja4306
    @ja4306 Před 4 měsíci +2

    I really love these videos, but I do wish there were some sort of database tie-in with them so we'd know how to integrate that with it. Because nobody's going to be wanting to add articles statically.
    And not just Firebase, maybe PostgreSQL would be a nice change.

  • @BobbyBundlez
    @BobbyBundlez Před 2 měsíci +1

    honestly from what i've heard thus far astros power comes from SSG and using SSR when needed. I don't think a blog site needs ANY SSR but I shall watch nonetheless Brad! glad you still make these just gettin back onto we dev learning after using gatsby for way too long and never pushing myself to learn new technologies. always felt clunky

  • @esakib
    @esakib Před měsícem +1

    You explain better than my native-speaker (Bangla, which is my mother language) university teachers! Thanks a lot sir 🥰🥰

  • @bigskillet
    @bigskillet Před 4 měsíci +1

    I'd happily pay for an Astro + Sanity course.

  • @ivanmendoz6238
    @ivanmendoz6238 Před 4 měsíci

    Whaaaat??? Is super great content i love it!❤❤❤❤❤

  • @aliyusuf-edu
    @aliyusuf-edu Před 5 měsíci

    Thanks

  • @MrWindforce
    @MrWindforce Před 4 měsíci

    Awesome Course. Im still at the beginning but so far so awesome. I have checked the Image size of the laptop image. When you put the source to the default path, then it will not be optimized even with Image at the beginning. But when you import it like with the logo it will be optimized from 1.6MB to 15.4kB :)

  • @drujas
    @drujas Před 3 měsíci +1

    Claro, Conciso y Fiable...

  • @isaacorraiz4362
    @isaacorraiz4362 Před 5 měsíci

    Thank you for your content Brad. I just finished learning react with your course react from to back and I am building my first project for my sister-in-law. After I finish I was planning to start with your next js course baby here in about Astro a lot. Should I learn nextjs first or just jump into Astro?

  • @Feenskee
    @Feenskee Před 5 měsíci +1

    Astro is so good that i sometimes think 'What's the catch' while using it

  • @dardan9218
    @dardan9218 Před 4 měsíci +1

    Hi Brad, i hope you and your family are well. Was wondering if you've been working on a react native couse? Your courses are always my favourites.

  • @samvelpetrosyan494
    @samvelpetrosyan494 Před 3 měsíci

    Thanks Bred it was conducive, please add Astro internalization in this project so that we will be able to translate for example from English to Russian, etc.

  • @dovahkiin3362
    @dovahkiin3362 Před 5 měsíci

    Great tutorial!
    btw are u planning to update the next.js course?

  • @theokrull1323
    @theokrull1323 Před 5 měsíci

    Hey Brad, do you have an estimate when the Laravel course is dropping? Looking forward to it!

  • @bigskillet
    @bigskillet Před 4 měsíci

    On the tag page section, if you reload the VS Code window, it'll fix the red underlines on astro:content. The extension gets hung up sometimes...

  • @raj080288
    @raj080288 Před 2 měsíci

    Hi Brad, great tutorial as always! just a quick question, could you have not used the "export async function getStaticPaths({ paginate })" function to achieve the same thing for the pagination?

  • @harpo187bling
    @harpo187bling Před 5 měsíci +2

    Hi Brad. Will you do a course on HTMX please? Thanks man

  • @gubatenkov
    @gubatenkov Před 5 měsíci

    Why I should choose Astro + Quick vs Next.js for blog ? What are the benefits of this stack over classic Next.js ?

  • @spacecoder0526
    @spacecoder0526 Před 4 měsíci

    Could you make astro tutorial or project with internationalization and React ?

  • @nielslytzdk
    @nielslytzdk Před 4 měsíci

    Great tutorial, thumbs up!! I keep getting an error in the MostRecentArticle component, it says:
    "Cannot read properties of of undefined (reading 'image')"
    Not sure what I'm doing wrong, I tried copy-paste the code from the repo but no luck 🤔

  • @osahady
    @osahady Před 4 měsíci

    ASTRO primarily focuses on optimizing network connections, especially in the context of gaming.

  • @Mal-wk3uq
    @Mal-wk3uq Před 5 měsíci

    Hi Brad,can you make content on ruby on rails ? Thanks

  • @vectoralphaAI
    @vectoralphaAI Před 4 měsíci +1

    Hey question here. Do you have any plans of doing any videos or CZcams courses on Django in the next year of 2024??

  • @DesignfulDev
    @DesignfulDev Před 5 měsíci

    hey Brad, how about a full Astro Course Dev to Deployment on Udemy after you finish and publish the Laravel one?

  • @leszekmodrzejewski5179
    @leszekmodrzejewski5179 Před 4 měsíci

    Coding with Brad is like having a beer with your best friend.

  • @nocastenoreligion5560
    @nocastenoreligion5560 Před 5 měsíci

    Dear traversy, will there be videos on flutter? Please.

  • @michaelfrieze
    @michaelfrieze Před 4 měsíci

    How come on the Vercel deployment the images on the About page take forever to load? Sometimes they load pretty quick and other times not so much. I have noticed this with Astro sites, even the sites I have built with Astro. Sometimes, the images just don't load at all and I don't know what it is about that framework that causes that. It's making me just want to avoid using their image component.
    Also, it's not a Vercel thing because I deployed some Astro apps to Railway and Netlify with the same issues.

  • @lutho600
    @lutho600 Před 5 měsíci +1

    Can you do a one with a CMS, please Brad, like Strapi, Payload or Sanity. I hope you see my comment 🙏🙏🙏🙏🙏😭

  • @phantazzor
    @phantazzor Před 4 měsíci

    so here you don't have any database , the fields and datas are within the articles but any solutions for something like Prisma with Astro ?
    Would be nice to add a like button as well as some users to that project
    ANYWAY THANKS

  • @luca9298
    @luca9298 Před 4 měsíci

    What about Picture component? One thing I can’t do is to disable lazy load

  • @akiffpremjee
    @akiffpremjee Před 3 měsíci +1

    does anyone know why when you do entry.data.date the dates are all one day behind the date defined in the front matter. Eg in the The best laptops for developers in 2024 file the date is set as Jan 20 but it pulls in as Jan 19. We see this with all the dates and I'm not sure why

  • @rayandedoschevic2884
    @rayandedoschevic2884 Před 4 měsíci

    Guys anyone with problems on vercel, when try to search blogs it shows 500: INTERNAL_SERVER_ERROR? In development all works fine

  • @atharvapise
    @atharvapise Před 3 měsíci

    31:08 you have not closed the section tag in index.html inside blog-themes folder

  • @whyfoo
    @whyfoo Před 5 měsíci

    can u do a remix next ?

  • @0xbarb
    @0xbarb Před 5 měsíci

    using astro from 1y+ never back to other framework

  • @ronaldbrunsen
    @ronaldbrunsen Před 5 měsíci

    Not sure I see the upside to using this versus word press.

  • @nice2u462
    @nice2u462 Před 5 měsíci +1

    Oh im first

  • @metamodern7648
    @metamodern7648 Před 5 měsíci

    I hate astro just because roadmap sh website is built with it and author shared the project under a stupid license which allows to contribute, but not take. At this point I'm just waiting when that shadow goes away so that I'm free to learn what I want

  • @Ruhgtfo
    @Ruhgtfo Před 5 měsíci

    Why JavaScript have many names

  • @nickdhrones6425
    @nickdhrones6425 Před 2 měsíci

    Glad you mentioned Tailwind early. I'm out!

  • @DannyBoy443
    @DannyBoy443 Před 4 měsíci

    How can anyone take this guys seriously with that Boston accent? Lmao.

  • @GMan12321
    @GMan12321 Před 5 měsíci

    Hi Mate, I just purchased your course. I can't find "Module 5: Search, Pagination & Deploy" in there. It's listed here "/astro-quick-start" but only 4 Modules here "/products/astro-quick-start".

  • @joaothomazini
    @joaothomazini Před měsícem

    @Traversy Media, thanks for the tutorial, it is my first time with Astro.
    I think there is an issue with the pubDate from the Article component:
    {formatDate(article.data.pubDate)} is showing the article Day - 1 not the correct date from the article.
    You can see on your course it also happens, when you change from hardcoded to pubDate it changes the day to -1.
    Any idea why?