https://github.com/ansrivas/fiber-pongo2-pkger
Template-project with fiber and pongo2 as template + pkger to package static assets.
https://github.com/ansrivas/fiber-pongo2-pkger
fiber-framework golang pkger pongo2 template
Last synced: 7 months ago
JSON representation
Template-project with fiber and pongo2 as template + pkger to package static assets.
- Host: GitHub
- URL: https://github.com/ansrivas/fiber-pongo2-pkger
- Owner: ansrivas
- License: mit
- Created: 2020-06-14T17:57:17.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-04-19T04:59:18.000Z (over 2 years ago)
- Last Synced: 2025-03-26T11:39:23.348Z (8 months ago)
- Topics: fiber-framework, golang, pkger, pongo2, template
- Language: Go
- Homepage:
- Size: 985 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
fiber-pongo2-pkger:
---
Template-project with `fiber` and `pongo2` as template + `pkger` to package static assets.
### Usage?
- Clone it
- Update the `internal/config.go` file with your structured configuration
- Register your routes inside `pkg/app/registerroutes.go`
- Ready to use
### Packaging:
This template-project uses `pkger` to package html-templates (`pongo2`) and static files like js, css etc.
### Swagger specs
You can generate and serve swagger (OAP-2) specs and serve it on `swagger` end point.
### Build and run:
```
make build_linux_only && ./build/fiber-pongo2-pkger
```
Test it by navigating to
- http://localhost:3030
- http://localhost:3030/healthz
### Using Makefile
```
$ make
help Show available options with this Makefile
test Run all the tests
clean Clean the application
vendor Go get vendor
release Create a release build.
bench Benchmark the code.
prof Run the profiler.
prof_svg Run the profiler and generate image.
generate_swagger Generate swagger definitions from the comments
package Package the html, css, js files etc
compress Run upx on the generated binary in `build` directory
build_linux_only Helper target to quickly build for linux without creating tar
```