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

tutorial-go-fiber-rest-api

> DevOps
开源

在 Go 上构建 RESTful API: 在隔离的 Docker 容器中使用 Fiber、PostgreSQL、JWT 和 Swagger 文档。

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

工具介绍

在 Go 上构建 RESTful API: 在隔离的 Docker 容器中使用 Fiber、PostgreSQL、JWT 和 Swagger 文档。

Tutorial: Build a RESTful API on Go

Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers.

The full article is published on March 22, 2021, on Dev.to: https://dev.to/koddr/build-a-restful-api-on-go-fiber-postgresql-jwt-and-swagger-docs-in-isolated-docker-containers-475j

Quick start

  1. Rename .env.example to .env and fill it with your environment values.
  2. Install Docker and migrate tool for applying migrations.
  3. Run project by this command:
bash
make docker.run

# Process:
#   - Generate API docs by Swagger
#   - Create a new Docker network for containers
#   - Build and run Docker containers (Fiber, PostgreSQL)
#   - Apply database migrations (using github.com/golang-migrate/migrate)
  1. Go to your API Docs page: 127.0.0.1:5000/swagger/index.html

P.S.

If you want more articles like this on this blog, then post a comment below and subscribe to me. Thanks!

And, of course, you can support me by donating at LiberaPay. Each donation will be used to write new articles and develop non-profit open-source projects for the community.

⚠️ License

MIT © Vic Shóstak & True web artisans.

Building:

https://levelup.gitconnected.com/a-better-way-than-ldflags-to-add-a-build-version-to-your-go-binaries-2258ce419d2d

Windows:

$ set CGO_ENABLED=0 && go build -ldflags="-w -s -X 'main.version=1.0.1'" .

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

Goapidockerfiberfiber-framework

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

> 工具信息

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

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理