This is a base application template, based on gApp.
Go ahead and edit files internal for your needs.
- api - contains the protobuf declaration files
- internal - contains application files
- internal/cmd - main entrypoint
- internal/docs - generated swagger files
- internal/handler - implementation of api service
- pkg - contains generated api files and third party libraries for protobuf
The application uses make to run commands.
Build application binary to bin/gappsvc.
Install dependencies to compile protobuf files.
Compile protobuf files.
| Path | Description |
|---|---|
/docs |
Serves swagged docs |
/metrics |
Serves prometheus metrics |
/info |
Serves build info (json) |
| Name | Default | Description |
|---|---|---|
GAPP_LOG_LEVEL |
error |
Log level of the application |
GAPP_GRPC_ADDRESS |
:50051 |
Application GRPC address |
GAPP_HTTP_ADDRESS |
:50080 |
Application HTTP address |