Categorygithub.com/tienanh129902/go-rest-api
modulepackage
0.0.0-20220703144001-c35fd87a1b1a
Repository: https://github.com/tienanh129902/go-rest-api.git
Documentation: pkg.go.dev

# README

Go Gin Boilerplate

A boilerplate for RESTful API with Golang, Gin and PostgresSQL

Go Version License

Golang Gin boilerplate with Postgres database resource. Supports multiple configuration environments.

Installation

First, you need to implement your own environment by copying .example.env into .env. Then replacing with your own database's information.

cp .env.example .env

Run in your terminal:

go run main.go

Usage example

Example call:

  • API url: http://localhost:8080/api/v1/{apiEndpoint}
  • Swagger UI url: http://localhost:8080/swagger/index.html#/

Release History

  • version 0.0.1

    • Configuration by environment,
    • Authentication
    • Entities: User, Token, Question, Score board
  • version 1.0.1

    • Add document
    • Implement swagger UI for endpoints's testing

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author