/Goal

Goal is a lightweight web framework like Django written in Golang.

Primary LanguageGoMIT LicenseMIT

Goal

Goal is a lightweight web framework like Django written in Golang.

GoalGenerator can auto-generate golang models from yaml file.

GoalUI is front of Goal.

Install Goal

  • Go 1.20+

  • Repository

$ git clone git@github.com:huoyijie/Goal.git
  • Tidy
$ cd Goal
$ go mod tidy

Run example

  • Create Superuser
$ cd Goal
$ go run ./goalcli -email huoyijie@huoyijie.cn -username huoyijie
  • Default Database (sqlite)
$ ls -l ~/.goal/goal.db
  • Run example goal-web
$ cd Goal/examples
$ go run goal-web.go

Install GoalGenerator

  • Repository
$ go install github.com/huoyijie/GoalGenerator/goalgen@v0.0.29
  • Generate models from yaml files
$ cd Goal
$ goalgen -d yamls