GateBridge Onboarding Starter is the official minimal, functional boilerplate application for GateBridge API Gateway.
Whenever you want to launch GateBridge in a new environment, cloud provider, or production server, simply clone this repository as your baseline starter project and extend it.
./run.sh./run_headless.shdocker compose up -dOnce launched, test your gateway endpoints:
# 1. Fast-Path Health Check (System Route)
curl http://localhost:4000/v1/health
# 2. Fast-Path Ping Endpoint
curl http://localhost:4000/v1/ping
# 3. Admin Management Node List
curl http://localhost:9090/v1/get_nodesThis onboarding template depends directly on gatebridge-core via Maven (pom.xml):
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.GateBridge</groupId>
<artifactId>GateBridge</artifactId>
<version>1.5.0-release-jdk21</version>
</dependency>
</dependencies>When building, Maven fetches the latest gatebridge-core release binary automatically from JitPack or your local ~/.m2 repository.
gatebridge-onboarding/
├── Dockerfile # Multi-stage Docker deployment
├── docker-compose.yml # Production Docker compose manifest
├── pom.xml # Maven configuration with JitPack repository
├── run.sh # Start Gateway with interactive TUI
├── run_headless.sh # Start Gateway in headless mode
└── src/main/java/io/gatebridge/onboarding/
├── OnboardingApplication.java # Main entry point & GatewayBuilder config
├── controller/
│ └── HealthCheckController.java # Fast-path custom RouteController (@RouteMapping)
└── listener/
└── TelemetryEventListener.java # Real-time EventBus listener (@Subscribe)
To adapt this starter kit for your own microservices infrastructure:
- Open
src/main/java/io/gatebridge/onboarding/OnboardingApplication.java. - Map your backend target services:
builder.createCluster("payments-cluster") .registerServer("http://payments-service.internal", 8080);
- Add custom route controllers implementing
RouteControllerwith@RouteMapping. - Deploy using
./run_headless.shordocker compose up -d.