Project Structure
This is our recommended project structure. While kibu doesn’t enforce this specific structure, we recommend this for long term maintainability.
- docker-compose.core.yaml
- docker-compose.yaml
- go.mod
- go.sum
- kibu.go
Directorysrc/
Directorybackend/
Directorycmd/
Directoryserver/ this is where your main.go lives
- …
Directorydatabase/
Directorymigrations/
- …
Directorymodels/
- …
Directoryqueries/
- …
Directorysystems/
Directorybillingv1/
- billingv1.go your interfaces go here
Directoryactivities/ implementations go in these subdirectories
- …
Directoryservices/
- …
Directoryworkflows/
- …
- … many more systems
Directorygen/
Directorykibuwire/ kibu generates a wire super set
- …