start-examples-rest-jetty.py
start-examples-rest-jetty.py starts the Juneau REST examples application using the embedded Jetty server. This provides a live demonstration of Juneau's REST capabilities.
What It Does
The script performs these operations:
- Locates Project - Finds the Juneau project root directory
- Checks Build - Verifies that classes are compiled
- Auto-Builds - Runs
mvn clean compileif classes are missing - Starts Server - Launches the Jetty-based REST examples application
- Handles Shutdown - Gracefully stops the server on Ctrl+C
Usage
Start the Server
cd /Users/james.bognar/git/juneau
python3 scripts/start-examples-rest-jetty.py
The server will start at http://localhost:10000/
Press Ctrl+C to stop the server.
Requirements
- Python 3.6 or higher
- Maven (mvn command must be in PATH)
- Java 17+
- No external Python dependencies (uses only standard library)
Notes
- The script automatically builds the project if needed
- The server runs in the foreground
- Swagger UI is typically available at
http://localhost:10000/swagger-ui
Share feedback or follow-up questions for this page directly through GitHub.