Skip to content

plopezlpz/fiber-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template go-fiber project structure

Opinionated template for a Rest API microservice using gofiber web framework.

The architecture is intended to look like this:

architecture

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

Quick Start

Copy the sample .env-sample file to .env

cp .env-sample .env

Run

make run

Test

curl localhost:8888/health

About

Opinionated fiber Rest API microservice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published