modulepackage
0.0.0-20240330051931-8e8356ccce8f
Repository: https://github.com/zainal21/go-bone.git
Documentation: pkg.go.dev
# README
GoBone Boilerplate
Getting started
This is built on top of Go Fiber Golang Framework.
Dependencies
There is some dependencies that we used in this skeleton:
- Go Fiber [Go Framework]
- Viper [Go Configuration]
- Cobra [Go Modern CLI]
- Logrus Logger [Go Logger]
- Goose Migration [Go Migration]
- Gobreaker [Go Circuit Breaker]
- OpenTelemetry [OpenTelemetry Tracer]
Requirement
- Golang version 1.21 or latest
- Database MySQL
- RabbitMQ
Usage
Installation
install required dependencies
make install
Run Service
run current service after all dependencies installed
make start
Database Migration
migration up
go run main.go db:migrate up
migration down
go run main.go db:migrate down
migration reset
go run main.go db:migrate reset
migration reset
go run main.go db:migrate reset
migration redo
go run main.go db:migrate redo
migration status
go run main.go db:migrate status
create migration table
go run main.go db:migrate create {table-name} sql
# example
go run main.go db:migrate create users sql
to show all command
go run main.go db:migrate