Revel is a web framework for Golang. A quick reminder that the main difference between a framework and a library is inversion of control (IoC). This m

Revel the Go, A high performance web framework

submited by
Style Pass
2020-09-06 12:49:22

Revel is a web framework for Golang. A quick reminder that the main difference between a framework and a library is inversion of control (IoC). This means that with a library, we are in control and our code calls the library. But in the case of a framework, the control is inverted, which means the framework is in control and calls our code. Revel makes it effortless to create web applications and uses the model-view-controller (MVC) pattern. To learn more about the MVC pattern click here.

With all these, Revel is still vastly customizable and since it’s written in Go, code generation is very much a part of its core.

To help you better understand the Revel framework, we’ll work on a quick tutorial. We will be developing an API to demonstrate the versatility of Revel. Our API will hit newsapi.org and return all the latest news in the US related to COVID-19.

In your command line, cd (change directory) into your go/src folder (the same place you have Revel installed) and create a new Revel app with the revel command:

Leave a Comment