fixcer / go-echo-template

Go Echo Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang Backend Template Service

A Go (Golang) Backend Template project with Echo, Postgres.

You can use this project as a template to build your backend project in the Go language on top of this project.

Major Packages used in this project

  • echo: Echo is a fast and unfancy HTTP server framework for Go.
  • oapi-codegen: OpenAPI/Swagger code generator for Go.
  • sqlc: Generate type-safe Go from SQL.
  • wire: Compile-time Dependency Injection for Go.
  • viper: For loading configuration from the .yaml file. Go configuration with fangs. Find, load, and unmarshal a configuration file in JSON, TOML, YAML, HCL, INI, envfile, or Java properties formats.
  • Check more packages in go.mod.

Preparing your environment

Install the following tools:

  • Go: we use Go to build the project.
  • Protocol Buffer: we use Protocol Buffer to generate the gRPC code.

Install dependencies

make install

Development

To start your application in the dev profile, run:

go run main.go

About

Go Echo Template

License:Apache License 2.0


Languages

Language:Go 85.2%Language:Makefile 14.6%Language:Shell 0.2%