Working with APIs in Astro is AMAZING!
HTML-код
- Опубликовано: 11 июл 2024
- #astro #webdevelopment
Learn how to work with API data in Astro and also learn how to create your own API.
WSL2: www.ceos3c.com/category/wsl-2/
⚡️ Courses
↬ www.stefanrows.com
📝 Blog
↬ www.ceos3c.com
🔗 All The Links & Goodies
↬ linktree.stefanrows.com
🥰 Show Support
↬ Patreon: / stefanrows
↬ PayPal: www.paypal.me/ceos3c
↬ Buy Me A Coffe: www.buymeacoffee.com/stefanrows
✅ Follow Me On Social Media
↬ Discord: / discord
↬ Twitter: / ceos3c
↬ Facebook: / ceos3c
↬ Instagram: / stefanrows
↬ Twitch: / ceos3c
📩 Newsletter
↬ www.ceos3c.com/go/newsletter
🤩 Specials
↬ 100$ Digital Ocean Credit: ceos3c.com/go/digitalocean
↬ Huge NordVPN Discount: ceos3c.com/go/nordvpn
↬ Increase Blog Earnings With AI: ceos3c.com/go/ezoic-ai
00:00 Intro
00:40 Creating the Project
04:00 Fetching API Data
08:50 Creating API Endpoints Наука
Good one bro. Keep up great content coming in.
Will do!
more Astro related things, thank you
Hi. I tried to use that as a mock api in dev mode. Any idea how I can exclude that files in production?
If I need fill the form then after confirmation (button pressed) update data in youtube video and fetch the result under the form, then use form values further for another socials. Is it ok to use Astro? Where to put scripts for social api, how to call? Which stack better for this? express + react / sveltekit / astro?
Thanks for free knowledge
Much welcome
Is there not a more elegant way for the url? Do we need an absolute path?
You can try with a relative path "/api/...", like in NextJS
inside map()... ??
I had the same initial thought, but it makes sense sorta as each item is its own list.
@@RobertMcGovernTarasis But if the is inside the map() loop, it ends up as , when it should be
Only get
jeder youtuber verzichtet gerne auf das "th" in der englischen aussprache, aber hey, man kann es doch wenigstens mal versuchen.... oder ? ;)
wen juckt es denn