Skip to content

toandp/fibo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fibo - Go Fiber API Boilerplate

A starter project with Golang, Fiber and Gorm

Golang Fiber boilerplate with MySQL resource. Supports multiple configuration environments.

Features

  • Basic Auth with Login, Register
  • Email confirmation on Registration
  • Email forgot password
  • REST API Authentication with JWT
  • PostgresSQL or MySQL with GORM V2
  • Logging via zap with file rotation
  • Use of Redis for Cache and Session
  • Hot Reload with Air
  • Easy Config Settings based on .env
  • Setup for Docker
  • Easy and Almost Zero Downtime Production Deployment

Boilerplate structure

├── api
|   └── v1
│       ├── login.go
│       ├── password.go
|       └── register.go
├── config
│   └── config.go
├── db
│   └── db.go
├── docs
│   ├── docs.go
│   ├── swagger.json
│   └── swagger.yaml
├── log
│   └── log.go
├── router
│   └── router.go
├── tmp
├── .air.toml
├── main.go

Installation

Development

air -c .air.toml

Go to http://localhost:3000/

Production

docker build -t fibo .
docker run -d -p 3000:3000 fibo

Thanks to following libraries:

About

⚡ A smart Fiber API Boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages