Skip to content

novan/golang-api-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batas Platform API

Installation

Requirements:

Installation Steps:

  • Run go install github.com/swaggo/swag/cmd/swag@latest
  • Run go mod tidy
  • Duplicate .env.example to .env and fill in mainly MySQL and Redis configuration

That's it.

Running the script

To run the script simply type go run main.go

Generating Swagger Doc

Make sure you're in project root folder and run swag init. Swagger documentation will be generated on docs folder. Run go run main.go and open http://127.0.0.1:8000/swagger/index.html to preview the Swagger documentation.

About

Golang API Server boilerplate with Dependency Injection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages