Opinionated template for a Rest API microservice using gofiber web framework.
The architecture is intended to look like this:
Folder structure:
.
├── Makefile
├── README.md
├── config
│ └── vars
│ └── vars.go
├── domain
│ └── domain.go
├── dto
│ └── doc.go
├── go.mod
├── go.sum
├── handler
│ └── health.go
├── main.go
├── model
│ └── doc.go
├── rest
│ ├── rest.go
│ └── router.go
└── service
└── service.go
Copy the sample .env-sample
file to .env
cp .env-sample .env
Run
make run
Test
curl localhost:8888/health