3 ms·
I've started using Echo[1] and it seems to provide most of what I'm looking for (routing, context, sessions, CSRF protection, form/json binding, etc). For temp
by mdasen 9y ago
I've started using Echo[1] and it seems to provide most of what I'm looking for (routing, context, sessions, CSRF protection, form/json binding, etc). For templating, I'm using QuickTemplate[2] which creates statically generated templates, but Pongo2[3] and Jet[4] also look reasonable. sqlx[5], gorm[6], and sqlboiler[7] all seem reasonable for database access, depending on what your style is (sqlx being oriented toward manual statements, gorm being reflection-based orm-ish, and sqlboiler using go generate's code generation to make statically generated access for you).
If you don't want to piece things together yourself (and want a more Rails-like experience), Buffalo[8] is probably your best bet.
[1] https://echo.labstack.com/ https://echo.labstack.com/
[2] https://github.com/valyala/quicktemplate https://github.com/valyala/quicktemplate
[3] https://github.com/flosch/pongo2 https://github.com/flosch/pongo2
[4] https://github.com/CloudyKit/jet https://github.com/CloudyKit/jet
[5] https://github.com/jmoiron/sqlx https://github.com/jmoiron/sqlx
[6] https://github.com/jinzhu/gorm https://github.com/jinzhu/gorm
[7] https://github.com/volatiletech/sqlboiler https://github.com/volatiletech/sqlboiler
[8] https://github.com/gobuffalo/buffalo https://github.com/gobuffalo/buffalo
- aalhour 9y agoSweet! Buffalo looks really interesting. I was playing with Sails the other day, which is a Rails-like framework for nodejs, I will try Buffalo and try to compare the experience. Would you recommend Buffalo for a JSON Web API mobile backend project or would it be an overkill?
- barrongineer 9y agoIt's fine for an api as well. When you create your app, just use the --api flag and it will leave out all of the front-end stuff.
- OhSoHumble 9y agoI don't know how relevant it is, but the creator of Buffalo has a video explaining how to hook up Vue to the framework: https://blog.gobuffalo.io/using-vue-js-with-buffalo-video-eefa58bf9bed https://blog.gobuffalo.io/using-vue-js-with-buffalo-video-ee...
- tptacek 9y agoIs there a way to use Echo where you're not using their weird handler interface, but rather just standard net/http Handlers?
- alain_gilbert 9y agoI started using "realize" to get live realod [9]. And I also use "bindata" to compile all my static files into the final binary [10]. [9] https://github.com/tockins/realize https://github.com/tockins/realize [10] https://github.com/jteeuwen/go-bindata https://github.com/jteeuwen/go-bindata