This framework helps you build a web microservice in minutes
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See how to use it in your project.
- Go 1.11 and above
A step by step series of examples that tell you how to get a development env running
Say what the step will be
go get github.com/mattb2401/veego
Create a simple application server
import (
"net/http"
"github.com/mattb2401/veego"
)
func main() {
config := veego.NewAppConfig()
conf, err := config.LoadEnv(".env")
if err != nil {
panic(err)
}
baseRouter := veego.NewRouter(mux.NewRouter())
baseRouter.Get("/", func(w *http.ResponseWriter, r *http.Request){
w.Write([]byte(`{"code": 200}`))
return
})
server := veego.NewServer()
if err := server.Run(); err != nil {
panic(err)
}
}
- GorillaMux - The http router and url matcher
- Gorm - The fantastic ORM library for Golang, aims to be developer friendly.
- GodotEnv - A Go port of Ruby's dotenv library (Loads environment variables from
.env
.) - GorillaHandlers - A collection of useful middleware for Go HTTP services & web applications
- AnyXML - Marshal XML from map[string]interface{}, arrays, slices, and alpha/numeric values.
- Parsrus - Return JSON and XML for Golang web apis
Give me a hand and please be nice
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
- Hat tip to anyone whose code was used
- Inspiration
- etc