go

Install buffalo.io ( go) - part 1 (Requirements)

linediconsine

Marco

Posted on March 8, 2022

Install buffalo.io ( go) - part 1 (Requirements)

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

I found the LTS node version working best for buffalo.

Install node LTS

Install node LTS by typing nvm install --lts

% nvm install --lts   
Enter fullscreen mode Exit fullscreen mode

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)
Enter fullscreen mode Exit fullscreen mode

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)"
Enter fullscreen mode Exit fullscreen mode

Install PostgreSQL

brew install postgresql
Enter fullscreen mode Exit fullscreen mode

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

💖 💪 🙅 🚩
linediconsine
Marco

Posted on March 8, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related