百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

fiber-go-template

> 后端框架
开源

带有 Fiber Go Web 框架的生产就绪后端模板,用于 Create Go App CLI。

1.1K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

带有 Fiber Go Web 框架的生产就绪后端模板,用于 Create Go App CLI。

Fiber 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

  1. Create a new project with Fiber:
cgapp create

# Choose a backend framework:
#   net/http
# > fiber
#   chi
  1. Rename .env.example to .env and fill it with your environment values.

  2. 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
  3. Run project by this command:

make docker.run
  1. 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/controllers folder for functional controllers (used in routes)
  • ./app/models folder for describe business models and methods of your project
  • ./app/queries folder 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/configs folder for configuration functions
  • ./pkg/middleware folder for add middleware (Fiber built-in and yours)
  • ./pkg/repository folder for describe const of your project
  • ./pkg/routes folder for describe routes of your project
  • ./pkg/utils folder 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/cache folder with in-memory cache setup functions (by default, Redis)
  • ./platform/database folder with database setup functions (by default, PostgreSQL)
  • ./platform/migrations folder with migration files (used with golang-migrate/migrate tool)

⚙️ Configuration

…

⚠️ License

Apache 2.0 © Vic Shóstak & True web artisans.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goapi-serverapi-testbackend-templatecgapp

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架