Getting Started

Run your first code samples with Elide.

Before you start

You'll need an installed copy of Elide. Follow the Installation guide to obtain a copy of Elide.

Running some code

Elide accepts a source file and selects the runtime from the file extension. JavaScript, TypeScript, and Python scripts run directly from source files.

1. Let's run a snippet of JavaScript
js
// hello.js
console.log("Hello!");
bash
 elide hello.js
shell
Hello!
2. Now let's do the same thing, but with TypeScript
ts
// hello.ts
let hello: string = "Hello!";
console.log(hello);
bash
 elide hello.ts
shell
Hello!
3. Run Python with the Python entry point
python
# hello.py
print("Hello from Python!")
bash
 elide python hello.py
shell
Hello from Python!
Python compatibility

Elide includes an embedded Python runtime. Pure-Python code and the standard library are the best-supported path; native extension compatibility can differ from CPython. See Elide + Python and Compatibility.

Next steps

GoalPage
Install dependenciesDependencies
Compare runtime compatibilityCompatibility Matrix
Try worked examplesCode Samples
Serve a directory or appDevelopment Server
Use Node and Web APIsAPI Overview
Use SQLite, MySQL, or PostgreSQLDatabase API
Lock down filesystem accessFilesystem Sandbox

See Also