Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/li-jin-gou/hz_demo
https://github.com/li-jin-gou/hz_demo
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/li-jin-gou/hz_demo
- Owner: li-jin-gou
- Created: 2022-12-21T05:53:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-04T18:10:04.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T18:52:45.320Z (6 months ago)
- Language: Go
- Size: 63.5 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# *** Project
## introduce
- Use the [Hertz](https://github.com/cloudwego/hertz/) framework
- Integration of pprof, cors, recovery, access_log, gzip and other extensions of Hertz.
- Generating the base code for unit tests.
- Provides basic profile functions.
- Provides the most basic MVC code hierarchy.## Directory structure
| catalog | introduce |
| ---- | ---- |
| conf | Configuration files |
| main.go | Startup file |
| hertz_gen | Hertz generated model |
| biz/handler | Used for request processing, validation and return of response. |
| biz/service | The actual business logic. |
| biz/dal | Logic for operating the storage layer |
| biz/route | Routing and middleware registration |
| biz/utils | Wrapped some common methods |## How to run
```shell
sh build.sh
sh output/bootstrap.sh
```