Order Service
This is a multi-file example. Use the links below to inspect each source file in the example tree.
Order Service
This multi-file example shows a small application split into domain, repository, service and entrypoint modules. It is intended as a practical shape for larger Geblang programs that should remain easy to test and bundle.
Files
Order Domain
order_service/src/domain.gb
Defines the domain object for the order service example.
Order Service Entrypoint
order_service/src/main.gb
Wires the order service modules together and prints a report.
Order Repository
order_service/src/repository.gb
Provides a small in-memory repository for the order service example.
Order Service
order_service/src/service.gb
Contains application logic for recording and reporting orders.