Everything You Need To Know About Astro

  Рет қаралды 23,538

Awesome

Awesome

7 ай бұрын

The Astro crash course.
💬 Topics:
- Building an Astro App;
- Layouts and templating in Astro;
- Astro Frontend Integrations;
- Build an Astro + Solid JS app;
- SSG vs SSR vs CSR;
- What is the islands architecture;
- Astro file system based routing;
- Astro endpoints;
- Turso database & SQLite.
#javascript
Patreon: / awesomeclub

Пікірлер: 65
@JaskierRezzo
@JaskierRezzo 7 ай бұрын
Another great video! Straight to the point and still easy to understand as usual!
@awesome-coding
@awesome-coding 7 ай бұрын
Thank you!
@casperengelmann4575
@casperengelmann4575 7 ай бұрын
Great zero-to-Astro vid! Nitpick: Instead of using a section to wrap form elements, a form will enable other fields than the save button to submit the form. Instead, use the onSubmit on the form. The example given in the video may even warrant using a plain old form without Solid JS, because of the simplicity in the implementation. I never really got the sentiment that Astro is a good replacement for full-stack applications, at least not in the same vain that Next.js is. As soon as you needed authentication, the only resource I was able to find was a hardly maintained OSS library. Looks like there's an Auth JS core library now, which could possibly be made into a video.
@TechBuddy_
@TechBuddy_ 7 ай бұрын
Do auth on your server. I have built like 4 production apps for my clients with astro they are super fast and responsive even with complex forms and dashboards. Astro is a very good "Full stack" framework for most apps. Btw next or sveltekit are good where the user sessions are more than an hour or two but for all other sites and apps astro is very much sufficient Edit: lucia auth is very good for authentication or supabase works well too
@awesome-coding
@awesome-coding 7 ай бұрын
Thanks for the zero-to-Astro suggestion. I'm gonna steal it for the Video title 😅 You are right about the issue - I appreciate you pointing it out!
@bobweiram6321
@bobweiram6321 7 ай бұрын
We need a moratorium on new JavaScript frameworks. It's getting beyond ridiculous.
@awesome-coding
@awesome-coding 7 ай бұрын
😅
@hoaxygen
@hoaxygen 7 ай бұрын
I've been using Astro and it's honestly not anything mind-blowing, it's just fine. It does some neat things but it needs better TypeScript support and better props support for its own .astro components. I can also see how its documentation can also be a bit confusing for web dev beginners, particularly figuring out what runs on the server vs what runs on the client. We'll see how it matures.
@awesome-coding
@awesome-coding 7 ай бұрын
This is a fair assessment!
@TechBuddy_
@TechBuddy_ 7 ай бұрын
Everything runs on the server and any components with client directives run on bot client and the server unless you use client:only I don't understand what you mean by props support but assuming you meant ts support for props just do something like interface Props { name: string; ...your props here } in the front matter script ( or whatever it is called ) and you get full type safety when using.astro components
@christopherkapic
@christopherkapic 7 ай бұрын
Yeah, improved TS support would be great.
@TechBuddy_
@TechBuddy_ 7 ай бұрын
@@christopherkapic wdym ?
@null_spacex
@null_spacex 7 ай бұрын
​@@christopherkapicTS support is pretty great. Better than expected.
@mawill432
@mawill432 7 ай бұрын
As a junior dev, some of this is really hard to wrap my head around, but everyone raves about Astro, so I would love to learn more about it. I guess i'm just having a hard time understanding what benefit there is from using Astro with your existing framework (such as SolidJS).. Am I dumb?? BTW congrats on your work with the Deno YT channel! As always, great vid!
@awesome-coding
@awesome-coding 7 ай бұрын
Thank you! So Solid JS will only tackle the CSR part of your app (the stuff that runs in the browser). With Astro, you can employ the server in the Rendering process, and also run other code on the server for various purposes (database work, rest APIs). Here is another video explaining the SSR & Hydration process - kzbin.info/www/bejne/oYuqZJywf9pqp6c Also, my next video (will be released tomorrow) discusses SSR in more detail. Don't worry if things don't click fro the get go - there are a lot of concepts and tools used in web development these days. Just stick with it. Good luck!
@armantgoldswain3951
@armantgoldswain3951 2 ай бұрын
Video immediately makes me think Fireship. Similar style but slightly longer video. Inevitable that his style would have been "adopted" for these kinds of videos.
@awesome-coding
@awesome-coding 2 ай бұрын
yep.. if you have a “faceless” channel, the tools you can use are rather limited
@allan_archie
@allan_archie 7 ай бұрын
What software do you use for animation? I like it and would like to use it.
@awesome-coding
@awesome-coding 7 ай бұрын
Hey! I'm using the Adobe Suite (Premiere, Illustrator, Photoshop, Rush)
@pawan29121991
@pawan29121991 7 ай бұрын
I saw solidjs in integration part of astro config
@MarekLichtner7
@MarekLichtner7 7 ай бұрын
Great, can you do this app in remix 2 (released week ago) a compare these two frameworks?
@awesome-coding
@awesome-coding 7 ай бұрын
I'm working on a remix 2 video, which should be out next week.
@stln768
@stln768 7 ай бұрын
Another great video. How would you compare this to remix?
@awesome-coding
@awesome-coding 7 ай бұрын
Thank you! Remix is one of the OGs in the space. However, I feel there is more flexibility and momentum behind Astro these days.
@stln768
@stln768 7 ай бұрын
OG? Isn’t remix fairly new (having just reached 2.0)?
@awesome-coding
@awesome-coding 7 ай бұрын
@@stln768 They actually first released it back in 2020, but you had to pay to use it. They came up with a lot of new ideas in SSR, and frameworks like Astro, SvelteKit or Solid Start drew inspiration from it.
@stln768
@stln768 7 ай бұрын
@@awesome-coding I suppose that “new” is relative when it comes to JavaScript frameworks. 😆 Don’t you feel that remix still is better for full stack dynamic applications and Astro is a better fit for content focused sites? (As stated in the docs)? Not trying to argue here, just trying to figure out if it’s worth it building a poc in Astro or if I should just stick to remix.
@TheBejbiborn
@TheBejbiborn 7 ай бұрын
Which vscode theme / UI plugins are you using? I love how your editor looks.
@awesome-coding
@awesome-coding 7 ай бұрын
Hey! The code in the video is not actually in an editor - it's a combination and styles and graphics, all mashed together in Photoshop. My goto editor is IntelliJ Idea with its recent modern UI update.
@TheBejbiborn
@TheBejbiborn 7 ай бұрын
@@awesome-coding Oh! Disappointing! Ever thought of making that into a theme? :D Great job on the video btw and thanks for answering!
@TechBuddy_
@TechBuddy_ 7 ай бұрын
@@TheBejbiborn well that theme already exists and it is called one dark Edit: the file explorer is an imaginary movie magic so I don't know how you'd achieve that in vscode
@emptybottle1200
@emptybottle1200 4 ай бұрын
bro im planning to create a new blog website of mine and im having analysis paralysis between nextjs and astro, im from react. i cant decide.
@MikeNugget
@MikeNugget 7 ай бұрын
Islands and hydration in Astro look a little bit overwhelming. Why not just to use Nuxt with it's versatile composables?
@qwoolrat
@qwoolrat 7 ай бұрын
- less data needs to be transferred - no reliance on Vue + Nuxt ecosystem - also ability to use something like alpine with its 6kb of data
@acopier
@acopier 26 күн бұрын
Nuxt is bloated af
@matanon8454
@matanon8454 7 ай бұрын
Pls more about Astro fullstack
@awesome-coding
@awesome-coding 7 ай бұрын
Sure thing! More to come!
@sirisaac8727
@sirisaac8727 7 ай бұрын
Whats your tech stack for editing these videos?
@awesome-coding
@awesome-coding 7 ай бұрын
Hey! This one was made with Adobe Rush for video editing, Photoshop for the actual graphics and a LOT of manual work 😅
@TechBuddy_
@TechBuddy_ 7 ай бұрын
@@awesome-coding Adobe rush ? What !
@awesome-coding
@awesome-coding 7 ай бұрын
@@TechBuddy_ Smooth and easy 😅
@TechBuddy_
@TechBuddy_ 7 ай бұрын
@@awesome-coding cancelled. Unfollowed. Unsubscribed. Flagged as inappropriate. You are a racist. /s
@ayoubkrt5018
@ayoubkrt5018 7 ай бұрын
im just here to say QWIK but nice video on astro, looks very cool, but to me nothing seems to be cooler than qwik and what it does in the background for the dev
@awesome-coding
@awesome-coding 7 ай бұрын
Fair enough! I like Astro more because of the dev experience.
@TechBuddy_
@TechBuddy_ 7 ай бұрын
Holy crap that was dense 😯 awesome work ❤ you are copying beyond fireship now 😂
@awesome-coding
@awesome-coding 7 ай бұрын
Thank you! 😅
@kumekster
@kumekster 5 ай бұрын
Hi, do you provide link to github project?
@awesome-coding
@awesome-coding 5 ай бұрын
Hey! I don't have a repo for this specific video, but here it is a repo for a past video I did on Astro - github.com/awesome-club/awesome-astro
@kumekster
@kumekster 5 ай бұрын
@@awesome-coding Thanks :)
@blackpurple9163
@blackpurple9163 7 ай бұрын
This looks similar to svelte
@awesome-coding
@awesome-coding 7 ай бұрын
It is more similar to the SvelteKit, in the sense that they both address the same issue. In the video I used Solid as the UI integration, but you could use Svelte instead of Solid, or both of them at once.
@blackpurple9163
@blackpurple9163 7 ай бұрын
@@awesome-coding I'm still learning svelte (not sveltekit yet), it seems fun for now, the one thing I don't know if possible is exporting multiple components from the same . svelte file like in react I used to make custom form input components in the same file, then export them individually since there's different kinds of inputs needed so making one custom input with ton of props is unreadable when compared to simply making seperate individual input components in the same file, is that possible? Like in a Inputs.svelte can I export a normal Input tag, a custom input for password, a custom input for telephone number, one for email, one for date etc?
@TechBuddy_
@TechBuddy_ 7 ай бұрын
@@blackpurple9163 exporting multiple components from a single file is possible but writing then in the same file is not Create a new file say inputs.js/ts and do export { default as EmailInput } from "./EmailInput.svelte" export { default as PwdInput } from "./PwdInput.svelte" You can now import that from another svelte file like import { EmailInput,PwdInput } from "./inputs"
@naranyala_dev
@naranyala_dev 7 ай бұрын
bun bun bun
@awesome-coding
@awesome-coding 7 ай бұрын
😂 suspenseful music intensifies!
@allan_archie
@allan_archie 7 ай бұрын
Nuxt, is this you?
@awesome-coding
@awesome-coding 7 ай бұрын
😂
@edhahaz
@edhahaz 4 ай бұрын
To astro or to next hm......
@awesome-coding
@awesome-coding 4 ай бұрын
To astro!
@soumyaripan5131
@soumyaripan5131 7 ай бұрын
..
Astro Crash Course in 20 Minutes!
22:07
Coding in Public
Рет қаралды 51 М.
What is Astro?
9:57
Kodaps Academy
Рет қаралды 6 М.
Суд над Бишимбаевым. 2 мая | ОНЛАЙН
7:14:30
AKIpress news
Рет қаралды 669 М.
SMART GADGET FOR COOL PARENTS ☔️
00:30
123 GO! HOUSE
Рет қаралды 22 МЛН
LA FINE 😂😂😂 @arnaldomangini
00:26
Giuseppe Barbuto
Рет қаралды 21 МЛН
The HATE Stack - Simple and Efficient
8:17
Awesome
Рет қаралды 47 М.
Write Once, Run Anywhere
6:06
Awesome
Рет қаралды 2,1 М.
Fastest Way to Add Writing to an Astro Site
6:15
Cedar Studios Web Design
Рет қаралды 644
Astro Did It Again!!
13:13
James Q Quick
Рет қаралды 16 М.
Vapor: The Future Of Vue
21:27
Theo - t3․gg
Рет қаралды 106 М.
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 521 М.
HTMX for Impatient Devs
8:33
Isaac Harris-Holt
Рет қаралды 37 М.
The App YOU or I Could Have Built... ShipFast
6:52
Travis Media
Рет қаралды 78 М.
Build ENTIRE Frontends With ONE Prompt - OpenUI Tutorial
8:59
Matthew Berman
Рет қаралды 48 М.
A Very Simple Tech Stack
7:58
Awesome
Рет қаралды 66 М.