in

A boilerplate for fiber versioning


πŸ‘‹ Hello! I just created a boilerplate, clean architecture, API versioning, data versioning. Any feedback is welcome!



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 πŸ™‚



Source: https://dev.to/aofdev/a-boilerplate-for-fiber-versioning-2ng9

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

GIPHY App Key not set. Please check settings

YipYip! β€” Keyboard navigation for Gmail, Product Hunt, Github & more

A simple CLI tool to use the _simulate API of elasticsearch to quickly test pipelines