Dynamic API Endpoints in Astro

  Рет қаралды 8,999

Coding in Public

Coding in Public

Күн бұрын

Join the early access for my course! learnastro.dev
🔗 Key Links 🔗
- Github: github.com/coding-in-public/a...
---------------------------------------
📹 Related Videos 📹
- Astro rendering options: • Choosing between SSR, ...
---------------------------------------
⏲️ Timestamps ⏲️
0:00 Introduction
1:18 Dynamic static files
6:35 React w/ endpoint
11:15 SSR CRUD functionality
23:55 Dynamic routing with endpoints
---------------------------------------
🎨 VSCode Theming
- Font: Cascadia Code: github.com/microsoft/cascadia...
- Theme: marketplace.visualstudio.com/...
- Icons: marketplace.visualstudio.com/...
---------------------------------------
🌐 Connect With Me 🌐
- Website: codinginpublic.dev
- Blog: chrispennington.blog
- Twitter: / cpenned
- Patreon: / coding_in_public
- Buy Me a Coffee: www.buymeacoffee.com/chrispen...

Пікірлер: 19
@jamesgrubb
@jamesgrubb 2 ай бұрын
Thanks for this. I was a little confused as to why you mention the public/data.json file but you then go on to use the yaml files as the source of your data.
@xGSTQ
@xGSTQ 2 ай бұрын
Ohhh this is nice, I have a use case for this, I have a content collection of locations which contains a lat & lng coordinate. I need the lat & lng of each content collection to create pins and info windows on a Google Map. Boom! Thanks Chris
@blokche_dev
@blokche_dev 2 ай бұрын
Thanks for sharing such valuable content.
@facundoleonel487
@facundoleonel487 2 ай бұрын
Thanks thanks for this video yor content its amazing
@hudsonsilvaoliveira5674
@hudsonsilvaoliveira5674 2 ай бұрын
Awesome, as always. Thanks, Chris!
@CodinginPublic
@CodinginPublic 2 ай бұрын
Glad you enjoyed it!
@facundoleonel487
@facundoleonel487 2 ай бұрын
I have a question, for example, if we have a products section on our main page that lists products (without using integrations from other frameworks). /products Going to that section with a tag pauses the main page until the data on my product page loads. How could I avoid that and give feedback to the user while making the request to my product page API endpoint on the front-end? (skeleton or some loader state).
@user-cw4fh5bd2p
@user-cw4fh5bd2p 2 ай бұрын
Good one 👍, thanks ❤
@CodinginPublic
@CodinginPublic 2 ай бұрын
You're welcome 😊
@DisabledCookie
@DisabledCookie 2 ай бұрын
i used astrojs to build my portfolio and its always a hassle to update the projects im working on i think i will try this. And is there away to i can set it to fetch Readme as project details?
@THEROOT1111
@THEROOT1111 2 ай бұрын
Check analogjs it uses astro islands which is angular for all the complicated logic + astro for the SEO gifts it gives, i'm personally doing multiple projects on it.
@CHEF_ALMERIA
@CHEF_ALMERIA Ай бұрын
I need to learn how to create membership pages, based on user level of suscription...? Blogs are great, but already have wordpress....
@CodinginPublic
@CodinginPublic 22 күн бұрын
Sounds like you need some auth :) I'd check out Lucia auth. I've been playing around with it and am very impressed! Works well with Astro db, too!
@JesseSlomowitz
@JesseSlomowitz 2 ай бұрын
Not sure why this is happening but for the dynamic static file version, the browser will automatically download the JSON instead of displaying it in the browser.
@JesseSlomowitz
@JesseSlomowitz 2 ай бұрын
It seems that if I don't apply a header of "application/json" in my response, the default is "application/octet-stream" which I assume causes the browser to handle the file by downloading it.
@moneyfr
@moneyfr 2 ай бұрын
could you try keystatic ?
@CodinginPublic
@CodinginPublic 2 ай бұрын
Hopefully soon. I’ve used it in a few projects. Just got too much going on with my course to do a tutorial quite yet on it.
@TheCrowdel
@TheCrowdel 2 ай бұрын
Why your terminal so beautiful, can i do that in windows ?
@hyceate
@hyceate 2 ай бұрын
Look up installing zsh and ozsh.
Choosing between SSR, SSG, and dynamic rendering in Astro
12:19
Coding in Public
Рет қаралды 14 М.
Astro Actions (First Look!)
13:15
Coding in Public
Рет қаралды 4,2 М.
¡Puaj! No comas piruleta sucia, usa un gadget 😱 #herramienta
00:30
JOON Spanish
Рет қаралды 22 МЛН
Eccentric clown jack #short #angel #clown
00:33
Super Beauty team
Рет қаралды 23 МЛН
Astro’s Big Announcement!
28:50
Coding in Public
Рет қаралды 8 М.
(FINALLY!) Email for Developers
28:19
Coding in Public
Рет қаралды 104 М.
Partytown Setup - Astro
3:52
Ben Haig
Рет қаралды 312
I Waited 3 Years For This Router. It STILL Blew My Mind.
21:30
Theo - t3․gg
Рет қаралды 95 М.
The (almost) perfect Neovim setup for Node.js
20:37
Dreams of Code
Рет қаралды 67 М.
Astro Icon just hit 1.0!
9:01
Coding in Public
Рет қаралды 8 М.
How to Middleware in Astro
17:05
Coding in Public
Рет қаралды 1,3 М.
20 Essential VS Code Extensions In 2024
14:26
Traversy Media
Рет қаралды 127 М.
Next.js 14 Tutorial - 7 - Dynamic Routes
7:55
Codevolution
Рет қаралды 127 М.
#rockpaperscissors! #kidsfun
0:11
J House jr.
Рет қаралды 47 МЛН
Best for beginner artists ✍️
0:20
QuickSketch
Рет қаралды 70 МЛН
🇮🇩Let’s go! Bali in Indonesia! 5GX Bali
0:44
ISSEI / いっせい
Рет қаралды 39 МЛН
Sigma #sigma
0:12
VOLTE
Рет қаралды 5 МЛН