This is built on top of Go Echo Golang Framework.
There is some dependencies that we used in this skeleton:
- Go Echo [Go Framework]
- Viper [Go Configuration]
- Cobra [Go Modern CLI]
- Logrus Logger [Go Logger]
- Goose Migration [Go Migration]
- OpenTelemetry [OpenTelemetry Tracer] - Upcoming
- Golang version 1.23 or latest
- Database PostgreSQL
- Firebase Auth
install required dependencies
make install
run current service after all dependencies installed
make start-http
run this command to build service to binary
make build
run to start service from binary of application
make run-http
This document provides instructions for managing database migrations using the provided Makefile
. The Makefile
includes commands for various migration operations, including applying migrations, rolling them back, and creating new migrations.
make help
Apply all pending migrations to the database.
make migrate-up
make migrate-create NAME=<migration_name> [TYPE=sql]
# example : make migrate-create NAME=users TYPE=sql
{base_url}/up
Expected Response:
{
"ref_id": "z0LMVDmRkV",
"code": 200,
"status": "OK",
"data": {
"message": "Waras!"
},
"timestamp": "2024-09-19T15:31:20.009226+07:00"
}