create-go-app/fiber-go-template
create-go-app/fiber-go-template has 1,120 GitHub stars and 153 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 09:38 UTC. Last push 2026-04-30.
📝 Production-ready backend template with Fiber Go Web Framework for Create Go App CLI.
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalFiber backend template for Create Go App CLI
Fiber is an Express.js inspired web framework build on top of Fasthttp, the fastest HTTP engine for Go. Designed to ease things up for fast development with zero memory allocation and performance in mind.
⚡️ Quick start
- Create a new project with Fiber:
cgapp create
# Choose a backend framework:
# net/http
# > fiber
# chi
Rename
.env.exampleto.envand fill it with your environment values.Install Docker and the following useful Go tools to your system:
- golang-migrate/migrate for apply migrations
- github.com/swaggo/swag for auto-generating Swagger API docs
- github.com/securego/gosec for checking Go security issues
- github.com/go-critic/go-critic for checking Go the best practice issues
- github.com/golangci/golangci-lint for checking Go linter issues
Run project by this command:
make docker.run
- Go to API Docs page (Swagger): 127.0.0.1:5000/swagger/index.html

🗄 Template structure
./app
Folder with business logic only. This directory doesn't care about what database driver you're using or which caching solution your choose or any third-party things.
./app/controllersfolder for functional controllers (used in routes)./app/modelsfolder for describe business models and methods of your project./app/queriesfolder for describe queries for models of your project
./docs
Folder with API Documentation. This directory contains config files for auto-generated API Docs by Swagger.
./pkg
Folder with project-specific functionality. This directory contains all the project-specific code tailored only for your business use case, like configs, middleware, routes or utils.
./pkg/configsfolder for configuration functions./pkg/middlewarefolder for add middleware (Fiber built-in and yours)./pkg/repositoryfolder for describeconstof your project./pkg/routesfolder for describe routes of your project./pkg/utilsfolder with utility functions (server starter, error checker, etc)
./platform
Folder with platform-level logic. This directory contains all the platform-level logic that will build up the actual project, like setting up the database or cache server instance and storing migrations.
./platform/cachefolder with in-memory cache setup functions (by default, Redis)./platform/databasefolder with database setup functions (by default, PostgreSQL)./platform/migrationsfolder with migration files (used with golang-migrate/migrate tool)
⚙️ Configuration
# .env
# Stage status to start server:
# - "dev", for start server without graceful shutdown
# - "prod", for start server with graceful shutdown
STAGE_STATUS="dev"
# Server settings:
SERVER_HOST="0.0.0.0"
SERVER_PORT=5000
SERVER_READ_TIMEOUT=60
# JWT settings:
JWT_SECRET_KEY="secret"
JWT_SECRET_KEY_EXPIRE_MINUTES_COUNT=15
JWT_REFRESH_KEY="refresh"
JWT_REFRESH_KEY_EXPIRE_HOURS_COUNT=720
# Database settings:
DB_TYPE="pgx" # pgx or mysql
DB_HOST="cgapp-postgres"
DB_PORT=5432
DB_USER="postgres"
DB_PASSWORD="password"
DB_NAME="postgres"
DB_SSL_MODE="disable"
DB_MAX_CONNECTIONS=100
DB_MAX_IDLE_CONNECTIONS=10
DB_MAX_LIFETIME_CONNECTIONS=2
# Redis settings:
REDIS_HOST="cgapp-redis"
REDIS_PORT=6379
REDIS_PASSWORD=""
REDIS_DB_NUMBER=0
⚠️ License
Apache 2.0 © Vic Shóstak & True web artisans.
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,826 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,475 starsreact/react
The library for web and native user interfaces.
252,467 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,625 stars