build with Fiber and Bun and GRPC
setup to your local env first
cp env-example.sh local_env.sh
source local_env.sh
get go package installed
go get
to run
go run main.go
OR
using docker compose
docker-compose up
.
├── ...
└── pkg/
└── domainName/
├── dto
├── models
├── services
├── handler
└── route.go
in this architecture refers from domain driven design principles
the domain grouped in folder pkg
in pkg
there is domain
folder to grouped each related domain modules
such as services
, handler
, models
, dto
the route.go
file will be represent of each domain api routes.
well the perfect case is when you need to separate this domain into multiple services you can just "put this out" into new services