A starter project with Golang, Fiber and Gorm
Golang Fiber boilerplate with MySQL resource. Supports multiple configuration environments.
- 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
├── 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
- Clone the repo git clone https://github.com/toandp/fibo.git
- Make sure you have installed: Redis, MySQL or Postgres
- Copy .env.sample to .env
air -c .air.toml
Go to http://localhost:3000/
docker build -t fibo .
docker run -d -p 3000:3000 fibo
Thanks to following libraries: