Skip to content

skamenetskiy/gapp-template

Repository files navigation

gApp application template

This is a base application template, based on gApp.

Quickstart

Go ahead and edit files internal for your needs.

Code structure

  • 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

Commands

The application uses make to run commands.

make build

Build application binary to bin/gappsvc.

make proto-deps

Install dependencies to compile protobuf files.

make proto

Compile protobuf files.

Common (builtin) handlers

Path Description
/docs Serves swagged docs
/metrics Serves prometheus metrics
/info Serves build info (json)

Environment variables

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages