Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```