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

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 84

  • @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 7 месяцев назад +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

  • @brynsgunnarsson
    @brynsgunnarsson День назад

    Been using the same for about a year now. It gets harder and harder to back to the old stacks as time progresses. I love this stack.

  • @wiqarc
    @wiqarc Месяц назад +2

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

  • @seanZG
    @seanZG 9 месяцев назад +5

    Same can't wait for a full tutorial

  • @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!

  • @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 ⭐

  • @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

  • @TaxShopGroup
    @TaxShopGroup 5 месяцев назад +2

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

  • @roderickmorrison
    @roderickmorrison 6 месяцев назад +1

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

  • @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.

  • @priyanshsharma8411
    @priyanshsharma8411 9 месяцев назад +2

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

  • @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

  • @hyperpopboy
    @hyperpopboy 29 дней назад

    Love this what are we looking at for deployment?

  • @Michael-Martell
    @Michael-Martell Месяц назад

    I love the acronym

  • @DiegoRoccia
    @DiegoRoccia 6 месяцев назад

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

  • @MattRobinsonDev
    @MattRobinsonDev 8 месяцев назад

    Great stuff Tom!

  • @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!

  • @viktorkrepak
    @viktorkrepak 7 месяцев назад

    looks amazing, thanks a lot for your work!

  • @andrewkillen5879
    @andrewkillen5879 8 месяцев назад

    nice one tom, loving this.

  • @fraserwsfraserws
    @fraserwsfraserws 9 месяцев назад +2

    More go stuff pls!

  • @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

  • @hclyrics
    @hclyrics 6 месяцев назад +4

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

  • @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

  • @MrDermases
    @MrDermases 9 месяцев назад

    I would love to see you add turso as the db

  • @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

  • @IkraamDev
    @IkraamDev 9 месяцев назад +1

    Interesting stack

  • @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.

  • @adanpalma4026
    @adanpalma4026 2 месяца назад

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

  • @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

  • @prashlovessamosa
    @prashlovessamosa 6 месяцев назад

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

  • @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?

  • @bnssoftware3292
    @bnssoftware3292 7 месяцев назад

    Great content!

  • @Miyan00000
    @Miyan00000 9 месяцев назад

    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  9 месяцев назад +1

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

    • @Miyan00000
      @Miyan00000 9 месяцев назад

      @@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  9 месяцев назад

      @@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 9 месяцев назад

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

  • @MrAustin4399
    @MrAustin4399 9 месяцев назад +1

    First like. That’s gangsta

  • @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.

  • @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?

  • @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

  • @kashnigahbaruda
    @kashnigahbaruda 9 месяцев назад +1

    This is the superiorest stack

  • @SleepeJobs
    @SleepeJobs 8 месяцев назад

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

  • @RoastLambShanks
    @RoastLambShanks Месяц назад

    internal>auth doesn't exist in your repro

    • @TomDoesTech
      @TomDoesTech  Месяц назад

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

    • @RoastLambShanks
      @RoastLambShanks Месяц назад

      @@TomDoesTech 💪

  • @3pm479
    @3pm479 8 месяцев назад

    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

  • @andrewkillen5879
    @andrewkillen5879 8 месяцев назад

    templ generate -watch

  • @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 28 дней назад

    The thumbnail has the words out of order 😬

    • @TomDoesTech
      @TomDoesTech  28 дней назад

      @@theoneed2051 so?

    • @theoneed2051
      @theoneed2051 28 дней назад

      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!