Is an example API made entirely in Golang using the Echo framework.
There are 2 ways available to install and run this project: with Golang installed and without Golang installed.
With Golang, there are two ways to run the API: simply by compiling with Golang or via the Air package.
Requisites:
Steps:
- Clone this repo.
- CD at the root of the project.
- Run:
go mod vendor
. - Create a
.env
file using.env.example
as example. - Run:
go run main.go
.
Requisites:
Steps:
- Clone this repo.
- CD at the root of the project.
- Run:
go mod vendor
. - Create a
.env
file using.env.example
as example. - Run:
air -c .air.toml
.
Without Golang, there are one way to run the API: through the docker.
Requisites:
Steps:
- Clone this repo.
- CD at the root of the project.
- Run:
docker-compose up
.