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 installrun current service after all dependencies installed
make start-httprun this command to build service to binary
make buildrun to start service from binary of application
make run-httpThis 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 helpApply all pending migrations to the database.
make migrate-upmake migrate-create NAME=<migration_name> [TYPE=sql]
# example : make migrate-create NAME=users TYPE=sql{base_url}/upExpected Response:
{
"ref_id": "z0LMVDmRkV",
"code": 200,
"status": "OK",
"data": {
"message": "Waras!"
},
"timestamp": "2024-09-19T15:31:20.009226+07:00"
}