Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huoyijie/Goal
Goal is a lightweight web framework like Django written in Golang.
https://github.com/huoyijie/Goal
Last synced: about 1 month ago
JSON representation
Goal is a lightweight web framework like Django written in Golang.
- Host: GitHub
- URL: https://github.com/huoyijie/Goal
- Owner: huoyijie
- License: mit
- Created: 2023-03-12T14:09:50.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-05-05T10:04:08.000Z (over 1 year ago)
- Last Synced: 2024-06-12T15:56:51.498Z (3 months ago)
- Language: Go
- Homepage:
- Size: 203 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Goal
[Goal](https://github.com/huoyijie/Goal) is a lightweight web framework like Django written in Golang.[GoalGenerator](https://github.com/huoyijie/GoalGenerator) can auto-generate golang models from yaml file.
[GoalUI](https://github.com/huoyijie/GoalUI) is front of Goal.
## Install Goal
* Go 1.20+
* Repository
```bash
$ git clone [email protected]:huoyijie/Goal.git
```* Tidy
```bash
$ cd Goal
$ go mod tidy
```## Run example
* Create Superuser
```bash
$ cd Goal
$ go run ./goalcli -email [email protected] -username huoyijie
```* Default Database (sqlite)
```bash
$ ls -l ~/.goal/goal.db
```* Run example `goal-web`
```bash
$ cd Goal/examples
$ go run goal-web.go
```## Install GoalGenerator
* Repository
```bash
$ go install github.com/huoyijie/GoalGenerator/[email protected]
```* Generate models from yaml files
```bash
$ cd Goal
$ goalgen -d yamls
```