Questions tagged [buffalo]

Buffalo is a Go web development eco-system.

Some Resources:

60 questions
128
votes
3 answers

missing go.sum entry for module providing package

Using the buffalo framework, after bootstraping it via buffalo new I am trying to run buffalo dev Expecting to see: project running on port 3000 But I am getting those error messages instead actions/app.go:4:2: missing go.sum entry…
Paulo
  • 8,690
  • 5
  • 20
  • 34
4
votes
2 answers

How to cause Buffalo transaction middleware to commit?

In trying to use the buffalo-pop/pop/popmw Transaction middleware, I am not having success writing to the database. No errors are returned, and the debug output shows the SQL statements, but the updates and inserts are not committed. The handler…
Schparky
  • 429
  • 4
  • 10
3
votes
2 answers

Soda CLI show warning : Migrator: unable to dump schema: exec: "pg_dump": executable file not found in $PATH

I'm new on using gobuffalo, and every time i run migrate always show this warning. What is the meaning of that warning? > soda migrate up v5.3.1 [POP] 2021/05/25 14:17:12 info - > create_products [POP] 2021/05/25 14:17:12 info - Successfully…
Muslihudin
  • 338
  • 2
  • 10
3
votes
0 answers

Nginx how to password protect HTTP methods with limit_except + rewrite

i'm trying to acheive something in nginx but i'm having a hard time. Basically i want to ask for a password everytime my api receive any HTTP methods except POST and PUT , it works to some extent because the password prompts appear when trying to…
3
votes
1 answer

Is gobuffalo able to generate my tables automatically?

I have this structure: type User struct { ID int CreatedAt int UpdatedAt int DeviceUniqueIdentifier string Sessions []Session `has_many:"sessions"` } I have no idea how to export this in fizz, so I did so: buffalo pop…
3
votes
0 answers

Using Buffalo, is this the correct app.mount behaviour?

I'm using buffalo v0.13.10. I'm trying to understand how to make it work this: https://github.com/frederikhors/buffalo-authboss-sample and I found that app.mount isn't like chi router mount (https://godoc.org/github.com/go-chi/chi#Mux.Mount). I…
Fred Hors
  • 3,258
  • 3
  • 25
  • 71
3
votes
2 answers

Where are /public/assets generated in the go buffalo workflow?

In go buffalo, there is a generated .gitignore file which ignores public/assets. However, at the same time, the generated css and js are critical for getting a 'real' buffalo app. So, there's a disconnect which I don't fully understand, which is…
jayunit100
  • 17,388
  • 22
  • 92
  • 167
3
votes
1 answer

How to execute raw SQL in Buffalo?

How can I execute raw SQL queries in Buffalo without having to set up my own db connection with sqlx? To clarify: I have my database connection defined in database.yml, but I don't want to use Pop models at this time.
Wabbitseason
  • 5,641
  • 9
  • 49
  • 60
2
votes
2 answers

How can I use TOML fixtures to seed my database in a development environment using the Go Buffalo framework?

I am trying to seed my development database in the Go Buffalo framework using TOML fixtures. However, I am having trouble finding a clear example or documentation on how to do this.
2
votes
1 answer

Is there a way to have Routify ignore certain URL paths?

We're using Go (Buffalo) to serve up both an API and the static assets for a Single-Page Application (SPA) that uses Svelte and Routify. However, I'd like to have certain routes (e.g. "/auth/login") be ignored by Routify and instead go to the Go /…
matt
  • 345
  • 2
  • 15
2
votes
1 answer

Debug Go code in VS Code by running buffalo command in terminal

I want to debug the GO code in VS code. I basically want to attach the go project which is open in VS code to the terminal and then run some "buffalo task" command in terminal, which then directs me to my breakpoints in VS code. Please help me and…
Paras
  • 33
  • 3
2
votes
1 answer

How to fix '/gobuffalo/buffalo/plugins/plugdeps/plugin.go:15:11: undefined: meta.BuildTags' error after installing gobuffalo

I am running Ubuntu 19.10 and Go 1.13.4. I installed gobuffalo following the instructions here: https://gobuffalo.io/en/docs/getting-started/installation#gnu-linux The error occurs after running the new command to start a project buffalo new…
rrcm
  • 325
  • 2
  • 3
  • 11
2
votes
1 answer

Debugging a single test function in buffalo

Is there a way to Debug a Single ActionSuite Test in an IDE like Goland or VSCode? Thanks a lot for your help!
2
votes
1 answer

Respond only few fields from the model

Below is my Advertiser Model - type Advertiser struct { ID int `json:"id" db:"id"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` Name …
ArunKolhapur
  • 5,805
  • 4
  • 18
  • 31
1
vote
1 answer

Go Buffalo test with sqlite error: could not find connection named test

Buffalo test error on a new project I created with this command. buffalo new coke --db-type sqlite3 buffalo test Here is the error: [POP] 2023/02/23 13:43:02 warn - unable to load connection development: could not create new connection: sqlite3…
Muhammad Kholid B
  • 478
  • 1
  • 10
  • 25
1
2 3 4