DEV Community

Cover image for A boilerplate for fiber versioning
Visarut Phusua
Visarut Phusua

Posted on

A boilerplate for fiber versioning

👋 Hello! I just created a boilerplate, clean architecture, API versioning, data versioning. Any feedback is welcome!

demo

Features ✨

  • API Versioning
  • Data Versioning
  • Dynamic Struct Type
  • Clean Architecture
  • Postman Collections
  • API Documentation with swagger

Project structure 📁

api
  ├── adapters
  │  └── mongo.go
  ├── app.go
  ├── handlers
  │  ├── errors.go
  │  ├── parser_body.go
  │  └── response.go
  ├── utilities
  │  ├── configuration.go
  │  └── converter.go
  └── versions
    ├── v1
    │  ├── entities
    │  ├── factories
    │  ├── repositories
    │  ├── routes
    │  └── usecases
    └── v2
        ├── entities
        ├── factories
        ├── repositories
        ├── routes
        └── usecases

Enter fullscreen mode Exit fullscreen mode

Here is my GitHub link for this project:

https://github.com/aofdev/fiber-versioning-boilerplate

Thank you for reading my post 😊
Thanks! Don't forget to give a ♥️ and follow :)

Discussion (1)

Collapse
qwtmvxxv profile image
hfr22

Thanks for sharing your ideas!