Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simagix/gin-api

Golang Gin API server template
https://github.com/simagix/gin-api

Last synced: about 1 month ago
JSON representation

Golang Gin API server template

Awesome Lists containing this project

README

        

# Gin API Server
## Overview

Gin API server template

### Linux Build
```
# ./gradlew clean buildLinux
```

### Docker Build
```
# ./docker.sh
# docker build -t simagix/gin-api:0.1.0 -f src/docker/Dockerfile .
```

### Unit Test
```
# export MYDB_URI=mongodb://user:password@localhost:27017/MYDB?authSource=admin
# cd api; go test -run VMPostStats
```

### Usage
```
Usage of /gin-api:
-logfile string
a string
-version
a bool
```