Web application development with Buffalo, in Golang

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • Part 1. Introduction to Learning Buffalo in Go.
    Demo uses v 16.26 of the Buffalo web application framework.
    Topics covered:
    00:00 - Welcome
    00:30 - Buffalo dependencies
    1:05 - CLI commands: create new project
    2:20 - MVC paradigm
    3:00 - Buffalo dev server
    4:05 - Database connection w/ Buffalo pop
    4:35 - Create a route and handler and template
    5:35 - Passing data to templates w/ Buffalo context
    7:00 - Buffalo plush template docs
    7:40 - Dynamic routes
    9:30 - Fetching dynamic data
    12:10 - Flash template partial
    13:30 - Buffalo build CLI command
    Github repo with code used in this series.
    github.com/briwagner/learn-bu...
    Part 1 of video series playlist:
    • Web application develo...
  • ХоббиХобби

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

  • @asutoshpanda1508
    @asutoshpanda1508 Год назад +4

    this is actually awesome resource to build something in Go, highly underrated one. Kudos man

  • @mickgardner
    @mickgardner Год назад +1

    This is an excellent video and very helpful. At first, with the very brief into I didn't know what to expect, but you got down to the details quickly and gave me the content I was looking for. Thank you for going to all the effort of making and publishing this.

    • @bwagner_dev
      @bwagner_dev  Год назад

      Hey Mick, thanks for the kind words. Great to hear that it's been useful!

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

    That's great, thanks

  • @luv2stack
    @luv2stack Год назад

    Good stuff! Very helpful. Is it possible to make those endpoints API's instead? Including all the frontend stuff that comes with Buffalo?

    • @bwagner_dev
      @bwagner_dev  Год назад +1

      Thanks! You mean can the endpoints return JSON, XML, etc., and not HTML? Yes, you can check the content-type of the request and return HTML or JSON. There is a built-in for that, as well, using r.Auto(). More here gobuffalo.io/documentation/frontend-layer/rendering/

    • @luv2stack
      @luv2stack Год назад

      @@bwagner_dev awesome, I will look into that. Appreciate the help!!

  • @danhhuynh2037
    @danhhuynh2037 2 года назад

    font name you use in vs code ?

    • @bwagner_dev
      @bwagner_dev  2 года назад

      Hey Danh. That's the Dark (visual studio) theme.

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

    This is an excellent tutorial and very helpful for understand for beginners. However, the github repo u have mentioned here is not an updated one with the code u're showing in the video. So could you please update your github repo with updated code, bcs in this video you are not showing the getUserInfo function which returns the User and cannot find a way of doing that since i'm just a beginner to buffalo framework.

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

      Hi, thanks for leaving that message. You are right: the code will not work with the latest Buffalo release, which uses the go:embed directive. I'm starting to update the code repo to fix that. You can try 'part-1' now, as it's updated. Let me know if you have other issues. Also feel free to create an Issue on the Github repo and I can follow up there too. Thanks for trying the lessons.

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

      @@bwagner_dev Thank you very much for your kindness!! and wishing you a prosperous new year! All parts are clear in the part 1 except the data taking from an API and other handling part. Could you please update that too. (I'm talking about the method regarding obtain data as a json from an API )

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

      @@chathuradilshan7650 I appreciate the kind words. Sorry for the confusion. I didn't show the API request in the video only to simplify the example. That function could be anything: get user data from a database, or a file, or an API. The actual code is in the repo here: github.com/briwagner/learn-buffalo/blob/part-1/actions/home.go . You can run that in the project, or copy it to another project. It's pretty standard Go method for getting data from an HTTP request.

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

      @@bwagner_dev I was waiting for your reply and thank you very much!