A RESTful API service template built with gin.
Name | Version |
---|---|
GNU make | 4.2.1 |
go | 1.16 |
- Initialize environment variable
cp sample.env .env
- Apply environment variables
make shell
- Download required packages
make init
- Start development API service
make run
- (Optional) Create binary executable output
make build
This project use gofmt
for formatting
make format
This project use go
for testing
make test
Name | Version |
---|---|
Docker | 19.03.6 |
docker-compose | 1.17.1 |
This will build the image with tag gin:latest
docker-compose build
The service is deployed with docker-compose
.
- Start containers
docker-compose up
- Darkborderman/Divik([email protected])