Skip to content

Htomsik/GO-REST-API-Sample

Repository files navigation

GO REST API

Just my GO playground

What can

  • Base account operation (Authorize, create, deactivate)
  • Store and process info in db
  • Have swagger (url/swagger)

All configs in configs/apiServer.toml

You need

  • GCC and CGO_ENABLED=1 (for go-sqlite3) go env -w CGO_ENABLED=1
  • Swag (for generate swagger docs)

RUN

With Make file

    Make build  #  build
    Make Start  #  build and start
    Make fullBuild # build with swaggo

Manual

    go mod tidy # if needed
    swag init -g .\cmd\apiServer\main.go # optional (swagger docs)
    go build -v ./cmd/apiServer
    ./apiServer

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages