Examples
The examples are generated from runnable .gb files under gebweb/examples. Each page includes the example summary and source code.
Multi-file Examples
Feature Tour
gebweb/examples/feature_tour
Browse this example's source tree as a grouped application.
Services Yaml
gebweb/examples/services_yaml
Browse this example's source tree as a grouped application.
Tasks
gebweb/examples/tasks
Browse this example's source tree as a grouped application.
Chat
Feature Tour
Main
feature_tour/main.gb
A runnable Geblang example.
App
feature_tour/src/app.gb
A runnable Geblang example.
Handlers
feature_tour/src/handlers.gb
A runnable Geblang example.
Feature-tour task manager
feature_tour/tests/tasks_test.gb
End-to-end TestClient drive of a broad framework
General
Gebweb auth: @Auth + @RequiresRole + user injection
auth.gb
A Gebweb app with three controllers: a public ping, a
Gebweb hello world
hello.gb
A minimal Gebweb application: one controller with a few
Hello Controller using gebweb.Controller base
hello_ctrl.gb
Minimal example of extending gebweb.Controller. Inherits
Gebweb hello-world TestClient smoke
hello_test.gb
Exercises every endpoint of `hello.gb` via the in-process
Gebweb notes (auto-discovery, HTTP + self-signed HTTPS)
notes.gb
A minimal JSON CRUD API using auto-discovery: a `@Service` is
Gebweb response helpers
responses.gb
`gebweb.html`, `gebweb.file`, and `gebweb.stream` let
Gebweb @ApiResource auto-CRUD
widgets.gb
A 35-line Gebweb app that yields the full six-endpoint
Server Rendered Blog
Services Yaml
Main
services_yaml/main.gb
A runnable Geblang example.
Consumer
services_yaml/src/consumer.gb
A runnable Geblang example.
Controllers
services_yaml/src/controllers.gb
A runnable Geblang example.
Feed
services_yaml/src/feed.gb
A runnable Geblang example.
services_yaml dev overlay
services_yaml/tests/dev_overlay_test.gb
GEBWEB_ENV=dev binds FeedClient -> StubFeedClient and