DEV Community

Cover image for Install buffalo.io ( go) - part 1 (Requirements)
Marco
Marco

Posted on • Edited on

3 2

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

#go

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

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️