Skip to content

RafikFarhad/hoax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hoax

A basic boilerplate for developing Rest API using GoLang and Fiber

Ingredients

  • fiber
  • mysql-driver
  • ORM
  • INI config parser
  • authentication
  • pretty error handling (with json)
  • template engine (!)
  • swagger-ui
  • web-socket support
  • docker image

Usage

  • Clone the repo
  • go mod download
  • go run main.go

There is a config.sample.ini file which will be parsed by default. Custom config.ini file can be provided by

go run main.go -c dev.config.ini

Other Args

$ go build ./main.go
$ ./main--help
  -c string
        Config File (default "config.sample.ini")
  -h string
        Host (default "127.0.0.1")
  -p int
        Port (default 3000)

License

Not decided yet

About

A RESTful API server with GoLang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published