Skip to content

Esqueleto para projetos em Golang, usando o framework Gin Gonic.

License

Notifications You must be signed in to change notification settings

daeleduardo/gokit

Repository files navigation

Gokit

A simple Golang skeleton project, for Web applications and Microservices (over TCP/IP), using:

  • Gin Gonic Framework
  • MVC Archteture.
  • Cache (Redis).
  • JWT (Service and Middleware)
  • ORM (Gorm)
  • Logger
  • Shell Script handler

Folder Structure

  • Config (Global configurations variables, can be use a default value or set in flag when run the app )
  • Controllers (controllers to request handle )
  • Lib (Libraries to use over the project, like constants, logger and other utils functions )
  • Middleware
  • Models (Gorm Models)
  • Public (Template, CSS, JS , HTML and others assets files)
  • Repository (Database and Cache connections)
  • Routes
  • Services (To handle the bussiness logic)

How to use

Run main.go file with flags parameters, example: bash go run main.go --gin-mode=dev

Example App

The repository have a demonstration app, can be start with command: bash go run main.go

Todo

  • Dockerfile
  • Tests

About

Esqueleto para projetos em Golang, usando o framework Gin Gonic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages