Build a Simple HTMX Project | HTMX Explained with Examples

Поділитися
Вставка
  • Опубліковано 5 чер 2024
  • Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
    Build a simple HTMX Project in this tutorial. HTMX explained with examples is the fastest way to learn how it works. We will look at a simple CRUD app and review how HTMX works.
    💖 Support me on Patreon ➜ / davegray
    ⭐ Become a full-stack web dev with Zero To Mastery Courses:
    - The Complete Web Developer: bit.ly/WebDevMaster
    - The Complete Web Designer: bit.ly/CompWebDesign
    - Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
    🚩 Subscribe ➜ bit.ly/3nGHmNn
    📬 Course Updates ➜ courses.davegray.codes/
    🚀 Discord ➜ / discord
    ☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
    👇 Follow Me On Social Media:
    GitHub: github.com/gitdagray
    X: / yesdavidgray
    LinkedIn: / davidagray
    Blog: www.davegray.codes/
    🔗 Source Code: github.com/gitdagray/simple-h...
    Build a Simple HTMX Project | HTMX Explained with Examples
    (00:00) Intro
    (00:05) Welcome
    (00:27) HTMX is not HTML
    (01:05) Installing HTMX
    (01:31) Reviewing the HTMX web page
    (05:38) Server Delivering HTML to HTMX
    (08:01) Hono Server
    (08:44) My Thoughts on HTMX
    (09:29) Running the Project
    📚 Tutorial References:
    🔗 HTMX: htmx.org/
    🔗 Hono: hono.dev/
    👀 Visual Studio Code: code.visualstudio.com/
    Was this Simple HTMX Project tutorial helpful? If so, please share. Let me know your thoughts in the comments.
    #htmx #project #simple

КОМЕНТАРІ • 69

  • @thebilalafsar
    @thebilalafsar 3 місяці тому +5

    I've been waiting to learn HTMX from you. Great content, as always, with clear explanations and examples😊

  • @irvanicsmoke1132
    @irvanicsmoke1132 3 місяці тому +1

    the timing is just right. thank you so much dave.

  • @7doors847
    @7doors847 3 місяці тому +4

    Hey! Tuesday Dave! 🤘
    Forgot to mention, Yes! absolutely do a Hono tutorial.

  • @amanrawat2177
    @amanrawat2177 3 місяці тому +2

    Again one of the awesome tutorial. Thanks Dave 😊

  • @TravinskiyVladislav
    @TravinskiyVladislav 3 місяці тому +1

    That's good. Looks like a great feature.Thank you Dave

  • @eboyd53
    @eboyd53 3 місяці тому +3

    Thanks Dave. Hono sounds interesting and a vid on it would be great.

  • @user-ce9lk3yg4u
    @user-ce9lk3yg4u 3 місяці тому +3

    I completed your React and Node.js tutorials and I have no words for thanks to you.
    I was struggling with node.js but you make it very simple , again , thanks a lot 😊.

  • @kumargupta7149
    @kumargupta7149 3 місяці тому

    Very much needed ❤

  • @avelinecash
    @avelinecash 3 місяці тому

    finally, an htmx tut from you. thanks!

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 3 місяці тому +1

    Nice, thx Dave 👌

  • @alvarouribe8416
    @alvarouribe8416 Місяць тому

    Thank you Dave this is a great first video on HTMX. I just find out a little bug in the backend part. PR added to your project :)

  • @samsorge27
    @samsorge27 3 місяці тому +2

    Welcome back Dave!

  • @amblessedcoding
    @amblessedcoding 3 місяці тому +1

    Thank you so much
    More video on htmx

  • @eg___xo
    @eg___xo Місяць тому

    You are great at what you do. I apprecaite you!

  • @aghil_shoja
    @aghil_shoja 3 місяці тому

    Hi, it was interesting Dave!
    I like the colors and design you've used on your website and your vedios on UA-cam and anything related to design, it doesn't bother eyes. 👍

  • @dev-akeel
    @dev-akeel 3 місяці тому +2

    5:50 Yes please that would be great.

  • @maciejlegowicz5834
    @maciejlegowicz5834 Місяць тому

    A very useful explanation of the HTMX concept. As my weapon of choice is PHP (mainly Laravel framework) it is still useful, as I may use HTMX on my next project. Thanks - cheers

  • @gregben4002
    @gregben4002 2 місяці тому

    Thanks for the tutorial. For others, if you get the error "'tsx' is not recognized as an internal or external command, operable program or batch file.", update npm and/or node.

  • @frackinfamous6126
    @frackinfamous6126 3 місяці тому

    Just the kinda guy I was waiting to learn HTMX from!!! LFG sir.

    • @frackinfamous6126
      @frackinfamous6126 3 місяці тому

      Sitting here learning Elysia as you posted this. Perrrrfect!

  • @stickyamp5996
    @stickyamp5996 8 днів тому

    Hey i liked some of your videos of advance topics in javascript, keep doing more videos like those please :D

  • @emerelle3535
    @emerelle3535 Місяць тому

    I'm somewhat excited about that htmx stuff and might explore it. but don't have any experience on that "backend-stuff". I thought I could do it with php or something. I'll see how it goes. x)

  • @PostMeridianLyf
    @PostMeridianLyf Місяць тому

    I haven't touched htmx yet but man this looks super easy to implement with Firebase functions in a nodejs environment.

  • @robmorris5732
    @robmorris5732 2 місяці тому

    Nice tutorial. How would I set the todo items to browser storage?

  • @KaimanGod
    @KaimanGod 3 місяці тому

    Great video teacher

  • @MarkVolkmann
    @MarkVolkmann 3 місяці тому

    It would be good to mention the upsides of generating some of the HTML on the server. Those include moving all the state management to the server so it is in one place. Also, the endpoints no longer need to be versioned since they are specific to the app, not shared like many JSON API’s are.

  • @thecodemon
    @thecodemon 3 місяці тому

    I love your videos, thanks for making this tutorial. I have a request, can you make a tutorial of (GoLang+HTMX) simple full stack project.

  • @anjaneyulub2529
    @anjaneyulub2529 3 місяці тому

    It would be great if u make video hono . Btw Awesome video as always Dave

  • @fscubetech7219
    @fscubetech7219 3 місяці тому +1

    The great content.

  • @portiseremacunix
    @portiseremacunix 2 місяці тому

    Is Hono a backend framework?

  • @eduardabramovich1216
    @eduardabramovich1216 2 місяці тому

    Please, please, please create some project-based tutorials with HTMX.

  • @rifatmunna
    @rifatmunna 3 місяці тому

    it's great .

  • @keshavjuneja6499
    @keshavjuneja6499 3 місяці тому +1

    hono video please, AND DAMM THANK YOU FOR THIS HTMX TODO

  • @kirillzlobin7135
    @kirillzlobin7135 3 місяці тому +1

    Dave is a real JS ninja :)
    My question is: do you have any experience with .NET and C#? And what do you think about this technology. I think if you could explain this - it would be super popular.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 місяці тому +1

      I have limited experience with it. My oldest son prefers C#. It has a lot of similarities to TypeScript because they share the same creator.

  • @muchirajunior9751
    @muchirajunior9751 Місяць тому

    Did you do the hone tutorial ....?

  • @saeedkhazalvand4821
    @saeedkhazalvand4821 3 місяці тому

    I will learn it 🎉

  • @user-zo3jl2ht9g
    @user-zo3jl2ht9g 3 місяці тому

    Would love to see Hono tutorial

  • @avelinecash
    @avelinecash 3 місяці тому

    please do hono and maybe how to deploy it on a server with htmx? thanks in advance..

  • @prakashbanjade4374
    @prakashbanjade4374 3 місяці тому +7

    Have you grown your hair long? I like them

  • @user-wc1un2fp5o
    @user-wc1un2fp5o 3 місяці тому

    🎉Tnks

  • @angeldenable
    @angeldenable 3 місяці тому

    It sounds great but it feels like it is reinventing somehow php by depending on a server. Edit: I love your videos. thanks a lot

  • @dobingify3130
    @dobingify3130 3 місяці тому

    is htmx sufficient to not use axios anymore?

  • @allgiftbernardali150
    @allgiftbernardali150 3 місяці тому

    Great

  • @zakariaf446
    @zakariaf446 3 місяці тому

    Do you write your code this clear the first time or you redo it at the end?
    Yes for the hono video

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 місяці тому

      This was the first time. However, it is always good to go back and clean up code.

  • @farookquisar1
    @farookquisar1 3 місяці тому

    Thanks for your tutorial.
    I think Astro is better choice than HTMx. Please correct me if I’m wrong.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 місяці тому +1

      They can be used together. You don't have to choose one or the other.

  • @itsadriano792
    @itsadriano792 3 місяці тому

    Hello, I know this has nothing to do with this video but youve helped me alot wiht videos and im lost so I want to shoot my shot :)... I have coded something in python which I was able to extract to an .exe but I want to send to an user for hhim to use. Which I cant becasue windows deffender detects it as malware and always blocks the download at the user end. I dont want him to download python or put off all anti viruses..

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 місяці тому

      This could be a good discussion for my Discord that is linked in the video description. Other Python users will also be able to comment.

  • @perronemirko
    @perronemirko 29 днів тому

    My only question is, how can I run tests on HTMX ?

  • @naranyala_dev
    @naranyala_dev 3 місяці тому

    GO + HTMX is the best

  • @Xaero324
    @Xaero324 Місяць тому +2

    Oh my lord... I did this type of thing decades ago using jQuery Ajax where I'd hackishly return HTML content and inject to html. Then the industry moved to JSON paylods and having some UI framework render the data. Now we are going back to spitting back HTML content? I hope you're not planning on making APIs to some of your data as it seems like you might be doing double work (one end point to get /orders and return JSON... another for /orders to get order list for your front end).

  • @user-bq7iy2ev5u
    @user-bq7iy2ev5u 3 місяці тому +1

    Wait why is it a "monorepo" when there are 2 things, a backend and a fontend, I thought mono means 1 of something...

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 місяці тому

      Lol that's legit question. There is one repo. That's the mono part. If using TypeScript it can share types between the two separate projects within.

  • @naranyala_dev
    @naranyala_dev 3 місяці тому

    bun bun bun

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 місяці тому

      One bun will get it done lol... But yes, you could use it instead of node.

  • @prakashbanjade4374
    @prakashbanjade4374 3 місяці тому

    I am the first😅

  • @billyfigueroa1617
    @billyfigueroa1617 3 місяці тому

    Thank you for the tutorial. First time hearing about it and I have to say…it feels yucky to me 🤢
    I don’t like it lol

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 місяці тому

      It does seem to have a polarizing effect. Either devs really like it or they really don't lol.

    • @billyfigueroa1617
      @billyfigueroa1617 3 місяці тому

      @@DaveGrayTeachesCode all love over here. If you like it more power to you. I don’t judge. Let them choose the right tool for them ✊🏾
      Thanks again!

  • @chuckynorris616
    @chuckynorris616 3 місяці тому

    unsubbed i dont care about another stupid framework these influencers try to push when they run out of content

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 місяці тому +5

      You might consider I've had a lot of requests for it. And I'm not an influencer. I'm an educator who loves code and learning new things. I don't push anything.

    • @chuckynorris616
      @chuckynorris616 3 місяці тому

      @@DaveGrayTeachesCode htmx is not a standard, it doenst solve anything and was made by a nobody. your shiny framework will die just like the rest of them, but hey you got your views 🤷this is why I stick to backend only, because stupid shit like this