This is built on top of Go Fiber Golang Framework.
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]
- Golang version 1.21 or latest
- Database MySQL
- RabbitMQ
install required dependencies
make install
run current service after all dependencies installed
make start
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