Learn Buffalo in Go - Part 2 Models

Поделиться
HTML-код
  • Опубликовано: 6 июл 2022
  • Part 2. Intro to Models and test-driven development
    Using Buffalo version 16.26
    Topics covered:
    * Models as part of the MVC paradigm
    * Buffalo patterns inspired by Ruby on Rails and the influence of test-driven development
    * configure database connections in database.yml file
    * use the Buffalo cli to generate a model; specify additional fields and field types
    * running buffalo test command
    * writing tests using the ModelSuite
    * testing with the database
    Github repo with code used in this series.
    github.com/briwagner/learn-bu...
    This video was re-uploaded to fix audio problems.
    Original video: • Learn Buffalo in Go - ...
    Part 2 of video series playlist:
    • Web application develo...
  • ХоббиХобби

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

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

    Hi Brain, Thank you for awesome tutorials on Buffalo and Golang. It's very helpful video for beginners. I'm requesting you please upload videos on testify framework. Buffalo + Golang + testify.

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

      Hi, thanks for the comment. I can try to look at a video on Testify and Buffalo. What sort of test routines would you like to learn about?

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

      @@bwagner_dev Thank you for your reply. unit testing and integration testing.

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

    I'm new to web dev, but this ecosystem/framework looks helpful for quickly putting together a webpage with golang backend. I'm confused where your Eve and Charles data came from, as I don't see any point in the video you adding any database or any requests made that signify this data being available?

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

      Woops this was meant for video 1

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

      @@softkittycara1081 hey thanks for the question. You are right. There is no local database in the first video. I did that to simplify the introduction. The data for those users comes from an external source, an HTTP request to the site reqres.in/. The code for fetching that data is in the repo, but I didn't show it in the video because it's not specific to the Buffalo parts.

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

      That makes sense, thanks again for the quick response!