Categorygithub.com/huoyijie/Goal
repositorypackage
0.0.0-20230505100401-b8b41082fc0b
Repository: https://github.com/huoyijie/goal.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

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 [email protected]:huoyijie/Goal.git
  • Tidy
$ cd Goal
$ go mod tidy

Run example

  • Create Superuser
$ cd Goal
$ go run ./goalcli -email [email protected] -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/[email protected]
  • Generate models from yaml files
$ cd Goal
$ goalgen -d yamls