Fiber Versioning Boilerplate
Prerequisite
Make sure you have the following installed outside the current project directory and available in your GOPATH
β¨
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
Development environment setup
make setup
β‘οΈ
Start the application make start
π§ͺ
Testing make test
ποΈ
Manual Run make help
to list available commands:
Choose a command run in fiber-versioning-boilerplate:
setup Initialize project
docker-start Start docker-compose
docker-stop Stop docker-compose
start Start the application
gendoc Generate docs api with swagger
test Run tests coverage
mongo-dump Dump MongoDB data for testing
mongo-restore Restore MongoDB data for testingg