Questions tagged [buffalo]

Buffalo is a Go web development eco-system.

Some Resources:

60 questions
1
vote
2 answers

restfull api on model with foreign-key

TLDR; How to create REST api on model having Foreign key (or db relationship in general) in buffalo framework? I am absolute beginner in go and I am trying to write an RESTFul service using buffalo framework following following example given on it…
varnothing
  • 1,269
  • 1
  • 17
  • 30
1
vote
1 answer

Is there a way to use gobuffalo i18n translator in models?

gobuffalo i18n translator is accessible in actions but how can I access it on my models? It requires the buffalo.Context as a param in T *i18n.Translator. Thank you in advance!
emurmotol
  • 171
  • 1
  • 2
  • 12
0
votes
0 answers

How to integrate CKEditor with goBuffalo

I am able to use CKeditor but I am not able to insert images in the editor. I am using goBuffalo framework.
0
votes
0 answers

Authentication in goBuffalo

I have followed the steps according to the documentation(https://gobuffalo.io/documentation/guides/auth/) to install the $ buffalo plugins install github.com/gobuffalo/buffalo-auth@latest.Yet,it did not work. I tried using the middleware authorize…
0
votes
1 answer

Slash appended to request path

I'm working on a SCIM api using https://github.com/elimity-com/scim, which gives me an http.Handler that I have mounted using app.Mount("/api/v1/scim", scimHandler). Requests route to the scim handler, but have a trailing / appended to them which…
Bob
  • 99
  • 2
0
votes
0 answers

Integration between Mongodb and Buffalo Golang framework

I am trying to use buffalo framework (Golang) with Mongodb Database as database.yml file as follows: development: database: myproject_development user: mongodb password: mongodb host: 127.0.0.1 url: mongodb://127.0.0.1:27017 test: url: {{envOr…
0
votes
2 answers

How to integrate Sentry

I want to catch all errors in the production environment and send them to the Sentry. But I can't understand how to add it as a middleware. Do I need to write a custom logger than implement logger.Logger interface or I can do it somehow differently?
user3389
  • 479
  • 5
  • 10
0
votes
1 answer

"Generate resource" command with "--skip-model" flag results in faulty resource

Description Just started using Buffalo, trying out all the beautiful features :) I'm having an issue however with the "generate resource" command in combination with the "--skip-model" flag. When this flag is used, all the generated functions…
Peter
  • 1
0
votes
1 answer

Integrating Sentry and Elastic APM in Buffalo

I am trying to integrate Elastic APM and Sentry into my website using Buffalo. The interesting files are as follows: handlers/sentryHandler.go package handlers import ( sentryhttp "github.com/getsentry/sentry-go/http" …
ScottWilson
  • 360
  • 3
  • 15
0
votes
1 answer

How to update gobuffalo models with pop?

I'm starting a project and already check how useful is gobuffalo/pop. I have never previously used a framework for my GO projects. I just used the stdlib and I'm used to working with Django too. In Django it is pretty straight forward to…
0
votes
1 answer

How to change priorities of messages logged by buffalo router

I updated question for clarity (as requested). I use Buffalo framework. I have lots of messages in logs informing that someone on the internet tries to reach nonexistent endpoint or uses HTTP method that is not supported by the service. I think,…
Codringher
  • 141
  • 4
0
votes
1 answer

Disable info logs during testing a buffalo application

I am unable to disable INFO logs during testing. Is there a way to do so? Thanks.
agbaraka
  • 121
  • 1
  • 7
0
votes
1 answer

Go Buffalo: ERRO[0000] Error: name buffalodevn is not allowed, try a different application name

When trying to start a new buffalo project in my Go Path I get this error, in my search I don't see any references to this error in the docs or in other questions on different forums. I've tried different names in different forms but I always get…
Alex Merced
  • 118
  • 1
  • 10
0
votes
1 answer

New buffalo project on Windows: could not find template items/index.html

I'm working with someone to build a Buffalo app. They are on Windows and I'm on Linux. After generating a model, they get a 500 error when visiting the list route: http://localhost:3000/items/. The problem is very similar to issue 1757 except the…
Nice Guy IT
  • 97
  • 1
  • 7
0
votes
1 answer

Specify many-to-many relationship in buffalo model

Please does anyone know how to specify a many-to-many relationship in buffalo models?
Odohi David
  • 158
  • 5