This project demonstrates how to use Daytona.io SDK to create and run code in sandboxes.
-
Install dependencies:
npm install
-
Configure your API key:
- Edit the
.env
file and replaceyour-api-key-here
with your actual Daytona.io API key
- Edit the
-
Run the project:
npx tsx index.mts
The application:
- Creates a Typescript sandbox
- Runs a simple "Hello World" statement in the sandbox
- Outputs the result
- Cleans up by removing the sandbox
index.mts
: Main application code.env
: Environment variables (including API key)package.json
: Project dependencies and scriptstsconfig.json
: TypeScript configuration