https://github.com/sujit-baniya/fiber-boilerplate
This is the go boilerplate on the top of fiber web framework. With simple setup you can use many features out of the box
https://github.com/sujit-baniya/fiber-boilerplate
boilerplate casbin fiber fiber-framework flash-messages go golang gorm jwt jwt-authentication paypal phuslu postgres rabbitmq redis rest-api session-cookie tailwindcss vue
Last synced: 4 months ago
JSON representation
This is the go boilerplate on the top of fiber web framework. With simple setup you can use many features out of the box
- Host: GitHub
- URL: https://github.com/sujit-baniya/fiber-boilerplate
- Owner: sujit-baniya
- Created: 2020-05-28T10:18:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-12T00:29:18.000Z (over 1 year ago)
- Last Synced: 2025-05-13T22:39:01.102Z (about 1 year ago)
- Topics: boilerplate, casbin, fiber, fiber-framework, flash-messages, go, golang, gorm, jwt, jwt-authentication, paypal, phuslu, postgres, rabbitmq, redis, rest-api, session-cookie, tailwindcss, vue
- Language: Go
- Homepage: https://sujit-baniya.gitbook.io/fiber-boilerplate
- Size: 82.8 MB
- Stars: 421
- Watchers: 9
- Forks: 52
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-fiber - sujit-baniya/fiber-boilerplate - Boilerplate on the top of fiber web framework with many middlewares and features. (🚧 Boilerplates / 🌱 Third Party)
README
### Looking for some more features or ideas??? Let's discuss on Discussions.
This is the go boilerplate on the top of fiber web framework.
With simple setup, you can use many features out of the box.
For details, visit [Documentation](https://sujit-baniya.gitbook.io/fiber-boilerplate/)
The features include:
* Basic Auth with Login,Register
* Email confirmation on Registration
* Role based authorization using Casbin
* File uploads
* UI on Tailwind. Setup ready for VueJS integration
* Laravel mix for UI
* Payment processing via PayPal
* Logging via Phuslu/Log with file rotation
* PostGres or MySQL with GORM V2
* REST API Authentication with JWT
* APP and API Separation based on JWT Token
* REST based basic auth
* Use of Redis for Cache and Session
* Hot Reload with Air
* Flash Message based on cookies
* Easy Config Settings based on .env
* Setup for Docker
* Easy and Almost Zero Downtime Production Deployment with Makefile
# Installation
* Clone the repo `git clone https://github.com/sujit-baniya/fiber-boilerplate.git`
* Make sure you have installed: Redis, MySQL or Postgres
* Copy .env.sample to .env
* To build the frontend, install nodejs
* Then run `npm install` and `npm run prod`
* Your server should be up now
Thanks to following libraries:
* [Fiber](https://github.com/gofiber/fiber/v2)
* [Xopen](https://github.com/brentp/xopen)
* [Gorm](https://github.com/go-gorm/gorm)
* [Phuslu Log](https://github.com/phuslu/log)
* [Jwt](github.com/form3tech-oss/jwt-go)
* [Fiber-Casbin](https://github.com/arsmn/fiber-casbin)
* [Air](https://github.com/cosmtrek/air)