go-fiber-example is a template for the Fiber (v3) framework for Go. It includes a clean project structure and integrates live reloads using Air
- Clone the repository:
git clone https://github.com/st0pcha/go-fiber-example.git
cd go-fiber-example- Create .env file
SERVER_HOST="0.0.0.0"
SERVER_PORT="8080"
SERVER_ALLOWED_ORIGINS="*" # "http://localhost:8080,http://localhost:3000"
- Install dependencies
- with go:
go mod download- with godo
godo deps- Run
- with go:
go run cmd/api/main.go- with godo
godo run- with go:
air- with godo
godo dev