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
copy-env Copy environment file
gendoc Generate docs api with swagger
test Run tests coverage
mongo-dump Dump MongoDB data for testing
mongo-restore Restore MongoDB data for testing