How to work with data in Astro

preview_player
Показать описание

🔗 Key Links 🔗

---------------------------------------

📹 Related Videos 📹

---------------------------------------

⏲️ Timestamps ⏲️
0:00 Introduction
1:19 Local frontmatter data
2:09 Fetch remote data
5:11 Import local files
9:40 Content Collections
17:02 Create JSON endpoints
23:54 Fundraiser

---------------------------------------
🎨 VSCode Theming

---------------------------------------

🌐 Connect With Me 🌐
Рекомендации по теме
Комментарии
Автор

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.

pedrolaguna
Автор

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.

ThaRealIansanity
Автор

Do you know how to make a fetch call including a jwt token in the frontmatter? Can it be done or is that typically handled in a different way?

InnocenceVVX
Автор

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.

ElNicopewpew
Автор

my favourite man posts about my favourite framework, excellent!

ycemilk
Автор

How can i input {product.data.title} in the script? It kepts giving me error

anonymous_tutorial
Автор

Hi, i'm problem with the import json
"Module can only be default-imported using the flagts(1259)
animales.json(1, 1): This module is declared with 'export =', and can only be used with a default import when using the flag.".
I don't now the problem

julianramirez-fdwr
Автор

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!

JamLaMermelada
Автор

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?

scottmccracken
Автор

Great run through, thanks for sharing.

meaningmean
Автор

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.

lucasdolberth
Автор

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.

RondellKB
Автор

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...

steeldragon-
Автор

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!

dustinmatlock
Автор

More tutorials on astro please....thanks

codedjango
Автор

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

dovinhas
Автор

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

christianOver