Quickstart
This guide will walk you through executing your first code snippet with Runtime. You’ll learn how to make API requests and interpret the results.Prerequisites
Before you begin, ensure you have:Runtime server running
The Runtime API server should be running on
http://localhost:8081. See the Setup Guide for installation instructions.Verify the server is running:Execute Your First Code
Let’s execute a simple “Hello, World!” program in Python.Using cURL
Response
You’ll receive a JSON response with the execution results:The
executionTime is measured in milliseconds and includes container startup, code execution, and cleanup time.Try Different Languages
Runtime supports multiple programming languages. Here are examples for each:- Python
- Java
- JavaScript
- C
- C++
Understanding the Response
The API returns anApiResponse wrapper containing the execution results:
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the request was successful |
message | string | Human-readable status message |
data | object | The execution result (if successful) |
data.output | string | Combined stdout and stderr output |
data.exitCode | int | Process exit code (0 = success) |
data.executionTime | long | Execution time in milliseconds |
Error Handling
If the code fails to execute, you’ll receive an error response:Note that compilation and runtime errors are captured in the
output field. The execution itself succeeds even if your code has errors.Unsupported Language
Next Steps
Now that you’ve executed your first code snippet, explore more:Supported Languages
Learn about all supported languages and their configurations
API Reference
Explore the complete API documentation
Architecture
Understand how Docker isolation works
Deployment
Deploy Runtime to production