Skip to content
GO-Macaron boilerplate
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd
config
controllers
lib
locale
models
public
routes
templates
utils
.gitignore
LICENSE
README.md
go.mod
go.sum
main.go
main_test.go

README.md

go-bp

GO-Macaron boilerplate

  • Note: Work in progress, can be changed

TODO

  • add cli support
  • add config support
  • add multiple database support
  • add form binding and auto setting
  • add controller support
  • add model support
  • add full login/logout and role-based middleware
  • add password recovery with email sending
  • add generators

Notes

This repository used go 1.11 with app as module name

The code support postgres and mysql but only tested on postgres

Installation

  • Clone this repository
  • copy config/config.ini.example to config/config.ini and config/test.ini
  • create 2 databases
    • dev database
    • test database
  • update config/config.ini to point to your database
  • update config/test.ini to point to your test database

Run

go test ./...
You can’t perform that action at this time.