castmetal / golang-token-api-authorizer

API Token Boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang api boilerplate

API Boilerplate using GIN Framework, Swagger, Redis and PostgreSQL

Installation

This API boilerplate requires Golang v17+ to run.

Install the dependencies and devDependencies and start the server.

go mod tidy
go install

Run Migrations

make migrate-db

Sqlc

You need sqlc to generate more queries that you'll need.

make generate-sql

For dev development...

go run main.go

Plugins

SwaggerGo

Plugin README
Swaggo [https://github.com/swaggo/swag][pldb]
Sqlc [https://github.com/kyleconroy/sqlc][plgh]

Docker

Todo

Tests

Todo

License

MIT

About

API Token Boilerplate


Languages

Language:Go 99.5%Language:Makefile 0.5%