Introducing The GoTTH Stack - Go, Tailwind CSS, Templ & HTMX

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 83

  • @pogadev
    @pogadev 9 หลายเดือนก่อน +42

    I can't wait for you to create a full tutorial with this stack, building an app as an example.

    • @MCroppered
      @MCroppered 7 หลายเดือนก่อน +1

      So you can learn how to build it and then release your own tutorial?

    • @ncpeaksean4278
      @ncpeaksean4278 6 หลายเดือนก่อน +1

      He only creates TODO apps. no real software developer.

    • @pookiepats
      @pookiepats 3 หลายเดือนก่อน

      @@MCropperedso he can feel productive while not exerting any effort 😂

    • @theangelvee
      @theangelvee หลายเดือนก่อน

      Or you can create your own app and learn a whole lot more than any tutorial could teach you

  • @wiqarc
    @wiqarc หลายเดือนก่อน +2

    I really appreciate you taking the time to walk through the file structure. Nice video.

  • @Kekszmester
    @Kekszmester 3 หลายเดือนก่อน +2

    Omg, I cant wait to switch to that stack. 90% of my projects could be done so much faster. Thanks for the introduction!

  • @seanZG
    @seanZG 9 หลายเดือนก่อน +5

    Same can't wait for a full tutorial

  • @JackGaskins-c7w
    @JackGaskins-c7w 3 หลายเดือนก่อน

    Really enjoying working with this framework. Found the structure easy to navigate and read. One note was that I did find that storing the "sessionID:userID" encoding in the cookie to be a bit redundant and everything works the same removing the userID. I don't personally prefer storing the userID in the cookie anyway. Overall, will definitely recommend this repo for ppl interested in trying this stack.

  • @ala.garbaa
    @ala.garbaa 9 หลายเดือนก่อน +2

    I can't wait to try out the stack! I like it already and I'm definitely giving it a star ⭐

  • @TaxShopGroup
    @TaxShopGroup 5 หลายเดือนก่อน +2

    Thanks for creating, making available, and explaining, this excellent work.

  • @nothingtoseehere93
    @nothingtoseehere93 6 หลายเดือนก่อน +8

    Go is life on easy mode. It’s crazy how good it is. lol at people still using Python honestly. I understand the appeal of Django and it’s great, but Python is ass garbage

  • @roderickmorrison
    @roderickmorrison 6 หลายเดือนก่อน +1

    A nice balance of basic tutorial and advice on best practices.

  • @metro_0x
    @metro_0x 9 หลายเดือนก่อน +14

    Good to see everyone switching to Go ❤❤

    • @spoodermen2530
      @spoodermen2530 9 หลายเดือนก่อน +3

      "everyone" no. Infact Most people are moving away from go.

    • @jitxhere
      @jitxhere 9 หลายเดือนก่อน

      woah wild statement mate. I hope you have facts to back it up. Coz I have many friends working in startups that are making their APIs specially in go
      @@spoodermen2530

    • @truefirstmagic
      @truefirstmagic 9 หลายเดือนก่อน

      @@spoodermen2530 professional dev isn't moving away from Go. The last 5 years or so I've seen more of the companies I work with moving towards Go. Typically upgrading their tech stack from node backend and/or Python to Go. During my last job search as well (few months ago), I saw more Go roles than I've seen in the past.

    • @aleksandrpetrov3938
      @aleksandrpetrov3938 6 หลายเดือนก่อน

      @@spoodermen2530 moving where?

    • @spoodermen2530
      @spoodermen2530 6 หลายเดือนก่อน

      @@aleksandrpetrov3938 python, JS, C#, rust

  • @hyperpopboy
    @hyperpopboy 26 วันที่ผ่านมา

    Love this what are we looking at for deployment?

  • @priyanshsharma8411
    @priyanshsharma8411 9 หลายเดือนก่อน +2

    I can't thank you enough for this. Keep up this amazing content.🙏

  • @Michael-Martell
    @Michael-Martell หลายเดือนก่อน

    I love the acronym

  • @fraserwsfraserws
    @fraserwsfraserws 9 หลายเดือนก่อน +2

    More go stuff pls!

  • @DiegoRoccia
    @DiegoRoccia 6 หลายเดือนก่อน

    25:30 you can actually use templ generate -watch there, or use air for regenerating templates too

    • @TomDoesTech
      @TomDoesTech  6 หลายเดือนก่อน

      It does that now

  • @bennyboiii1196
    @bennyboiii1196 5 หลายเดือนก่อน

    I would honestly do this, probably without tailwind (not a fan of inline styles tbh), and with some vanilla JS for responsiveness. Simple but effective!

  • @seanZG
    @seanZG 9 หลายเดือนก่อน

    You could have a components folder for atomic and reusable components, then create a routes folder for screen views. Would fit modern frontend ways of working.

    • @TomDoesTech
      @TomDoesTech  9 หลายเดือนก่อน

      I tried to make the components folder but couldn't get it to work. I didn't spend much time on it though to be honest. I like the individual handlers for routes, but it's probably just because that's what I'm used to

    • @seanZG
      @seanZG 9 หลายเดือนก่อน

      I managed to get things setup quite nicely, but I am also not experienced with Go in general so don't know what the gotchas are when structuring a project. I had the intensions to create a routes folder that colocated the handlers and screen templates together. Then a components and layouts folder separate which works alright so far. My assumption was that the handlers drive the main routes so why not co locate them, then components folder is atomic. @@TomDoesTech

    • @seanZG
      @seanZG 9 หลายเดือนก่อน

      If you like we can collab on a starter template@@TomDoesTech

  • @viktorkrepak
    @viktorkrepak 7 หลายเดือนก่อน

    looks amazing, thanks a lot for your work!

  • @hclyrics
    @hclyrics 6 หลายเดือนก่อน +4

    Pretty bold of you not to at least wear a black shirt while presenting the GoTTH stack.

  • @MrDermases
    @MrDermases 9 หลายเดือนก่อน

    I would love to see you add turso as the db

  • @davidcopenhaver5583
    @davidcopenhaver5583 6 หลายเดือนก่อน +1

    Great work with this content and a general thumbs WAY UP to this stack! I've been tinkering with go/templ/tailwind/htmx and really liking it. I've been using echo instead of chi but any go web framework will work depending on your needs (or just native net/http even)... also just noting I've seen reference to a GoTHAM stack as well with is essentially GoTTH plus a database layer which is mariaDB.

    • @TomDoesTech
      @TomDoesTech  6 หลายเดือนก่อน

      When I made this I had only worked with Chi but I've since worked with Echo and it's pretty good. I like that the handlers return errors.
      I did end up adding an SQLlite database to this repo

  • @andrewkillen5879
    @andrewkillen5879 8 หลายเดือนก่อน

    nice one tom, loving this.

  • @MattRobinsonDev
    @MattRobinsonDev 8 หลายเดือนก่อน

    Great stuff Tom!

  • @IkraamDev
    @IkraamDev 9 หลายเดือนก่อน +1

    Interesting stack

  • @yunyang6267
    @yunyang6267 9 หลายเดือนก่อน +2

    what's your thought on Pocketbase, could you make a video on that?

    • @TomDoesTech
      @TomDoesTech  9 หลายเดือนก่อน +2

      I haven't looked at pocketbase in a while. I just had a quick look at it looks cool. I'd need to build something with it though

  • @olayinkaadeyemi9006
    @olayinkaadeyemi9006 3 หลายเดือนก่อน +1

    pretty good, great content.

  • @unknown-user001
    @unknown-user001 8 หลายเดือนก่อน +2

    Why are you using jwt rather than session? As HTMX creator says, session based authentication is more suitable for HTMX, because HTMX is meant to be a monolithic and server central architecture.

    • @biigsmokee
      @biigsmokee หลายเดือนก่อน

      cos he wants to

  • @rielj
    @rielj 8 หลายเดือนก่อน

    Great Stuff Tom!
    I have a question with regards to the CSP Middleware, I managed to run the program with no errors but it's not rendering the styles on the website, I haven't changed a thing except the sha256 that I used coming from the console when an error is detected when sha isn't declared. It also shows the css file on the sources tab.
    I still don't get it why it's not working though, any Idea why this occurs?

    • @rielj
      @rielj 8 หลายเดือนก่อน

      I found the issue, it's because of `TextHTMLMiddleware`, the browser didn't load the css file because of its MIME Type. Thanks BTW!

    • @rielj
      @rielj 8 หลายเดือนก่อน

      Another Question though, does the sha256 keeps changing if I add css on the input.css?

  • @kashnigahbaruda
    @kashnigahbaruda 9 หลายเดือนก่อน +1

    This is the superiorest stack

  • @owenwexler7214
    @owenwexler7214 5 หลายเดือนก่อน +1

    Looks very good. Can't wait to try this on a side project. What I'd love to see is a CLI tool similar to Create-T3-App (Create-GOTTH-App?) that generates all the files needed and also allows the user to choose what database they want to use, whether they want auth, etc.

    • @owenwexler7214
      @owenwexler7214 5 หลายเดือนก่อน

      Also:
      Do you want to use Tailwind or MUI?
      o Tailwind x MUI
      Wrong answer, using Tailwind instead...

    • @TomDoesTech
      @TomDoesTech  5 หลายเดือนก่อน

      @@owenwexler7214 that's a really cool idea

  • @adanpalma4026
    @adanpalma4026 2 หลายเดือนก่อน

    Do you have this gotham but from scratch? where we have to write all code

  • @prashlovessamosa
    @prashlovessamosa 6 หลายเดือนก่อน

    Mr Tom make more stuff on Htmx and Go as like forms

  • @bnssoftware3292
    @bnssoftware3292 7 หลายเดือนก่อน

    Great content!

  • @Miyan00000
    @Miyan00000 8 หลายเดือนก่อน

    Great video! There's a problem with the 'Content-Security-Policy' with Safari though:
    "Refused to execute a script because its hash, its nonce, or 'unsafe-inline' does not appear in the script-src directive of the Content Security Policy."
    "Refused to apply a stylesheet because its hash, its nonce, or 'unsafe-inline' does not appear in the style-src directive of the Content Security Policy."
    I've not found how to fix this yet. Any idea?

    • @TomDoesTech
      @TomDoesTech  8 หลายเดือนก่อน +1

      I forgot Safari even existed tbh so I haven't looked into it

    • @Miyan00000
      @Miyan00000 8 หลายเดือนก่อน

      @@TomDoesTech Yeah Safari always does things its way., but iOS and macOS is a somewhat large enough market that I can't leave unsupported..

    • @TomDoesTech
      @TomDoesTech  8 หลายเดือนก่อน

      @@Miyan00000 you can easily fix it, either add unsafe-inline or put it in a style sheet and I assume you can make htmx not add the css

    • @Miyan00000
      @Miyan00000 8 หลายเดือนก่อน

      @@TomDoesTech Yes that's what I did, thanks

  • @dimatall
    @dimatall 8 หลายเดือนก่อน +1

    How many of these go+htmx stacks out there already )) GOTTH HATE PTJ. The mission of every HTMX developer is to generate the yet another stack name ))

    • @zyriab5797
      @zyriab5797 4 หลายเดือนก่อน

      These names are cringe af

  • @eduardabramovich1216
    @eduardabramovich1216 7 หลายเดือนก่อน

    Question: what if you need a single backend with multiple frontend?. With HTMX the backend seems to be more coupled to the frontend. Am I wrong?

    • @bufferc6362
      @bufferc6362 6 หลายเดือนก่อน

      You can write all frontends in HTMX.

    • @biigsmokee
      @biigsmokee หลายเดือนก่อน

      Make a /JSON endpoint that Marshalls the data

  • @001ibuyvn
    @001ibuyvn 9 หลายเดือนก่อน

    can you make a video about step by step how to set up this source code. I tried to set up from scratch but having trouble with air (same file config as yours), when i ctrl+c to terminate the server, it's still running even though it works fine with go run command. Any idea ?

    • @TomDoesTech
      @TomDoesTech  9 หลายเดือนก่อน

      I get that if it panics and I ctrl+c, never been able to find a solution to it. Other than that, it works fine. I'm not sure what your issue is, it should just work.

  • @SleepeJobs
    @SleepeJobs 8 หลายเดือนก่อน

    Has anyone got CSP error for styles.css? Please help

  • @jeffkirchoff14
    @jeffkirchoff14 9 หลายเดือนก่อน

    Sir Could you create an Advanced course on Express and Node js APIs from scratch
    The old one looks difficult for a beginner

    • @TomDoesTech
      @TomDoesTech  9 หลายเดือนก่อน +4

      How would I make an advanced course for a beginner?

  • @andrewkillen5879
    @andrewkillen5879 8 หลายเดือนก่อน

    templ generate -watch

  • @RoastLambShanks
    @RoastLambShanks หลายเดือนก่อน

    internal>auth doesn't exist in your repro

    • @TomDoesTech
      @TomDoesTech  หลายเดือนก่อน

      @@RoastLambShanks I removed it, it uses session auth now

    • @RoastLambShanks
      @RoastLambShanks หลายเดือนก่อน

      @@TomDoesTech 💪

  • @MrAustin4399
    @MrAustin4399 9 หลายเดือนก่อน +1

    First like. That’s gangsta

  • @3pm479
    @3pm479 7 หลายเดือนก่อน

    Bro I am a beginner, many of the things go above my head but I want to start with only HTMX+GO and I am interested in it. Could u please guide me or something...some tutorials or a basic project or something? pls

  • @aleksandrpetrov3938
    @aleksandrpetrov3938 6 หลายเดือนก่อน

    I think very quickly we're gonna have huge amount of files in handlers folder. Looks like not the best attitude

    • @TomDoesTech
      @TomDoesTech  6 หลายเดือนก่อน

      so? what's wrong with that?

    • @aleksandrpetrov3938
      @aleksandrpetrov3938 6 หลายเดือนก่อน

      @@TomDoesTech i don't know. May be nothing. That was just a thought in my head. I still don't know what are the best ways and attitudes

  • @theoneed2051
    @theoneed2051 25 วันที่ผ่านมา

    The thumbnail has the words out of order 😬

    • @TomDoesTech
      @TomDoesTech  25 วันที่ผ่านมา

      @@theoneed2051 so?

    • @theoneed2051
      @theoneed2051 25 วันที่ผ่านมา

      Ha! Hey Tom. Not a big deal but I commented because I stared at the thumbnail for a little while trying to figure out how you got GoTTH... no biggy at all

  • @blazingelse9104
    @blazingelse9104 5 หลายเดือนก่อน +1

    Oh god, I hate tailwind and its whole concept from the bottom of my heart. It's the new comic sans. But hey, without it, rhe stack is just GoTH!