How to work with data in Astro

Sdílet
Vložit

Komentáře • 52

  • @pedrolaguna6584
    @pedrolaguna6584 Před 8 měsíci +17

    Your videos are helping me go from someone that was only able to deploy static htmls and relied heavily on tools like Webflow and Framer to actually make something meaningful, into someone that is able to make their first CRUDs and actual applications. I never thought I could, but Astro seems to fit my needs so well and without you teaching it I wouldn't be here at all. Thank you so much for the videos, can't wait for the course.

    • @CodinginPublic
      @CodinginPublic  Před 8 měsíci +3

      That’s so kind and so encouraging! And congrats! That’s a hard step to take. Great job!

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

      Nice to read this comment! Fellow Webflower here, just learned NextJS but wanted something like Astro to leave Webflow 👌🏾

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

      ​@@marvinkrI think Astro is the perfect transition tool from low/no code solutions. Unlike others in the space, Astro can scale to nearly anything you need, but can start small. A lot of the other tools in the space either start at too high a bar or don't scale like Astro. I'm biased, but man, just such a beautiful framework.

  • @meaningmean
    @meaningmean Před 8 měsíci +1

    Great run through, thanks for sharing.

  • @user-me6pj4zd1z
    @user-me6pj4zd1z Před 8 měsíci

    my favourite man posts about my favourite framework, excellent!

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

    Man I hope a lot of people sign up for your course. I just finished the latest lesson in module 4 and then picked up the part about endpoints here. I really feel like I can do a lot with Astro now instead of feeling burned out and confused like I often do at the end of a 1 week course binge. You're doing great as a teacher. I look forward to more.

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

      Thanks so much for the kind comment! Hoping the course continues to impress!

  • @unity_12
    @unity_12 Před 8 měsíci

    Very amazing ❤🎉

  • @ElNicopewpew
    @ElNicopewpew Před 8 měsíci +6

    Great stuff! A video on astro + cms would be awesome as well :) Ive fiddled with sanity, but not much content on astro + sanity on youtube.

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

      Plans are in the works for that… 😉

    • @Owapawa
      @Owapawa Před 8 měsíci +1

      I'm planning to use this exact combo for my upcoming website, so I'd be thrilled to see an up-to-date guide explaining it :)

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

    Great explanations!
    Congrats!

  • @steeldragon-8
    @steeldragon-8 Před 6 měsíci

    La aportación que haces al compartir tus conocimientos es invaluable, gracias a esto he podido comprender un poco más de como funciona Astro, muchas gracias...

  • @scottmccracken
    @scottmccracken Před 8 měsíci

    Great video, concise and helpful! Is there a keyboard shortcut available for console ninja that lets you quickly console.log an output like you did for data2 at 2:48?

  • @brx-hashcode
    @brx-hashcode Před 8 měsíci

    Very Chris 🎉🙏🏾🙏🏾

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

    Thx a lot for your passion.

  • @lucasdolberth9132
    @lucasdolberth9132 Před 8 měsíci

    Excellent video. One question: With astro, is it possible to load data dynamically? From what I understand, it only fetches the data at build time. Let's say I have an H1 on the page, which can be changed in a CMS by the user, how can I make the astro always fetch the value of this H1 dynamically, without having to rebuild the page? I wanted to have an endpoint pointing to an API and fetching page data. When the user changes the data in the CMS and simply reloads the page, the data (h1 for example) will already be updated. Is it possible to do this with Astro? Thank you for your video, greetings from Brazil.

    • @CodinginPublic
      @CodinginPublic  Před 8 měsíci +1

      Oi! Glad you enjoyed the video! Yes, completely possible! You just need to use the SSR mode. Here’s an explanation of the different rendering options available. I'd recommend SSR and then you can set individual routes to be prerendered where you know the content won't change. Hope this helps! czcams.com/video/aIHRjloFASU/video.html

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

    Good video, very useful.

  • @julioxdish
    @julioxdish Před 8 měsíci +1

    Hi Chris, great video full of information as always, since you've worked on many astro projects before, i have a question for you, it would be of great help if you could share a bit of your knowledge:
    What would be the most cost effective way to setup a membership (aka vip zone, aka member zone, aka paid zone) for an astro site?
    It would need a simple login for the users to access certain static pages with the content, a payment zone and i believe a zone to manage their suscription.
    I was thinking about stripe, but i would like to know if you had experience you could share on any of those or other platform that allowed you to manage everything about authorization, authentication and billing without a db or server (to reduce costs and setup time).
    Thats all, thank you for your dev content, i am on your waitlist for your astro course, it would be great a module about setting up everything about monetization, can't wait to see it!

    • @CodinginPublic
      @CodinginPublic  Před 7 měsíci

      Currently, I'd probably use stripe? I haven't done it before, but that's likely the way I'd go. You could roll your own auth or use one of the many services out there. Hoping to include something like this eventually in my Astro course…but I'd need to build it out first and ensure it's a good approach.

    • @julioxdish
      @julioxdish Před 7 měsíci

      @@CodinginPublic thank you for the reply! i am currently doing it with firebase + stripe

    • @CodinginPublic
      @CodinginPublic  Před 7 měsíci

      That's what I'd use! Perhaps supabase, but I think either is great!@@julioxdish

  • @codedjango
    @codedjango Před 7 měsíci

    More tutorials on astro please....thanks

  • @dustinmatlock
    @dustinmatlock Před 8 měsíci

    Any hints on an approximate release timeframe for the Astro course?
    EDIT: right after commenting, I heard you mention “a few months”. Can’t wait, thanks!

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

      Since it's just me on weekends and early mornings, it's taking a bit longer than I thought. Hoping it'll be worth the wait!

  • @julianramirez-fd6wr
    @julianramirez-fd6wr Před 2 měsíci

    Hi, i'm problem with the import json
    "Module '"e:/Codigos/Personal/000_Pruebas/07_Portafolio/adoption-mascot/src/data/animales"' can only be default-imported using the 'allowSyntheticDefaultImports' flagts(1259)
    animales.json(1, 1): This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.".
    I don't now the problem

  • @dovinhas
    @dovinhas Před 8 měsíci

    i appreciate a lot your videos, currently i am working in a side project with astro can you help me with authentication in your tutorials

    • @CodinginPublic
      @CodinginPublic  Před 8 měsíci

      do you have service in mind?

    • @dovinhas
      @dovinhas Před 7 měsíci

      @@CodinginPublic supabase or pocketbase

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

    Nice hat!

  • @RondellKB
    @RondellKB Před 7 dny

    Does astro support yaml? I tried creating a data directory with a yaml file but it does not recognize it, but it recognizes json in the same directory.

    • @CodinginPublic
      @CodinginPublic  Před 5 dny +1

      Hmm. I’m actually not sure? If I use YAML, it’s always as a content collection data file (which Astro does support). Let me know if you find out!

    • @RondellKB
      @RondellKB Před 5 dny

      @@CodinginPublic Thanks for the response!
      I tried and I can't get it to work, I ended up using a JSON file instead. My use case is very simple, I just need a file which would hold icon names, so each line in the file would just be the key and value, no objects or arrays. I tried using the collections but maybe I'm doing something wrong because the only way collections worked for me was to create a single file for each icon, resulting in many files with a single line in them.

  • @norbertpiwka5798
    @norbertpiwka5798 Před 8 měsíci

    df

  • @christianOver9000
    @christianOver9000 Před 8 měsíci +1

    I normally like the pacing of your videos, however, this one felt much too fast for my taste.