Skip to content
/ go-api-template Public template

Template to create API repositories faster on Golang with necessary structure

Notifications You must be signed in to change notification settings

Matrix278/go-api-template

Repository files navigation

Go API template

This is a template for a Go API project. It includes the following features:

  • Clean Architecture
  • Swagger Documentation
  • Dockerized
  • Makefile for easy setup
  • API Security
  • API Logging
  • API Testing

Requirements

Getting started

Native

Download all necessary modules and run the application

go mod download
make run

Docker

First application start

make docker

After the first start

After first setup you can use docker-compose to start and stop / restart the application

docker-compose up
docker-compose down

Swagger

Swagger documentation is available at http://localhost:8080/docs

To generate the Swagger documentation, you can run the following command:

make swagger

Contributing

You can find the detailed contributing guidelines by navigating to the CONTRIBUTE.md file in the repository.

Docs

  • Swagger - Swagger Documentation, available after running the application

About

Template to create API repositories faster on Golang with necessary structure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •