Install buffalo.io ( go) - part 1 (Requirements)
Marco
Posted on March 8, 2022
This is more a log of what I did to install buffalo.io, I will try to add more details and maybe a part two.
What is buffalo?
Buffalo is a framework that would love to be the Rails or the Django for GOlang. It provides some simplification for creating a web app using Golang.
Requirements:
Install Go
If you didn't install go, you need to. The best resource to install go is here
For Verify go installation type go version
% go version
go version go1.17.5 darwin/amd64
Install Node
If you not planning on using buffalo only as API you need Node. I strongly recommend installing node through nvm.
Install nvm
More details on nvm here
You can verify that nvm is installed by typing nvm -v
% nvm -v
0.37.2
I found the LTS node version working best for buffalo.
Install node LTS
Install node LTS by typing nvm install --lts
% nvm install --lts
Use node LTS version by typing nvm use --lts
Use node LTS
% nvm use --lts
Now using node v16.14.0 (npm v8.3.1)
Install a database ( PostgreSQL )
I choose this SQL, you can install MySQL as well,
Note: SQLite needs specific buffalo version right now
Install brew
Homebrew allows us to install and compile software packages easily from the source.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install PostgreSQL
brew install postgresql
Wrapping up for now
Let me know if you found this initial tutorial helpful, as mentioned I am planning a part two with some hands-on buffalo
Posted on March 8, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.