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 :)

Top comments (1)

Collapse
 
qwtmvxxv profile image
hfr22

Thanks for sharing your ideas!