Bangladeshhrshadhin/fiber-go-boilerplate
🚀 Production-ready Golang based boilerplate application with Fiber web framework
🚀 Fiber Go Boilerplate: Production-Ready REST API Starter
A high-performance, zero-memory-allocation Go web framework template designed to get your REST API running in minutes with best practices baked in.
Fiber Go Boilerplate is a production-ready Golang application template built on top of the Fiber web framework, which is an Express.js-inspired framework built on the ultra-fast Fasthttp engine. Created by hrshadhin, this project provides a clean, modular architecture that helps developers quickly scaffold and deploy robust REST APIs without worrying about project structure or configuration overhead. It solves the common pain point of setting up a Go web project from scratch by providing a ready-to-use layout with business logic, platform-level code, and configuration clearly separated.
✨ Highlights
- Layered Project Structure: Organizes code into clear separation of concerns with
/appfor business logic,/cmdfor executables,/pkgfor project-specific packages, and/platformfor database and logger setup. - Fiber Web Framework: Built on Fasthttp, the fastest HTTP engine for Go, ensuring high performance and zero memory allocation for fast development.
- JWT Authentication: Securely handles user authentication using JWT (JSON Web Tokens) with configurable expiration times.
- Auto-Generated Swagger Docs: Integrates Swagger tools to automatically generate API documentation, accessible via
/swagger/for easy API exploration and testing. - Database Migration & Seeding: Uses
golang-migratefor database schema management and includes seed scripts for rapid demo data setup. - Dockerized Setup: Comes with Docker configuration, allowing you to run the entire stack with a simple
make docker.runcommand.
💡 Why it matters
Fiber Go Boilerplate offers a pragmatic starting point for Go developers who want to build scalable web services without the overhead of designing a project architecture from scratch. Its clear separation of business logic (/app), project-specific code (/pkg), and platform-level infrastructure (/platform) enforces a clean codebase that is easy to navigate and maintain. By including essential tools like Swagger for documentation, JWT for security, and Docker for containerized development, it removes the initial setup friction and lets developers focus on writing business logic immediately. It is best suited for developers looking for a fast, production-ready Go REST API template that adheres to modern Go project conventions.
#Go #Fiber #RESTAPI #Boilerplate #TiniX
Similar Projects
Discover other similar projects and AI models.
Go/Fiber🧬+</>Templ to-do list app with user login and HTMx-powered frontend.
Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD