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 JavaScriptjs
// hello.js
console.log("Hello!");bash
elide hello.jsshell
2. Now let's do the same thing, but with TypeScript
Hello!ts
// hello.ts
let hello: string = "Hello!";
console.log(hello);bash
elide hello.tsshell
3. Run Python with the Python entry point
Hello!python
# hello.py
print("Hello from Python!")bash
elide python hello.pyshell
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
| Goal | Page |
|---|---|
| Install dependencies | Dependencies |
| Compare runtime compatibility | Compatibility Matrix |
| Try worked examples | Code Samples |
| Serve a directory or app | Development Server |
| Use Node and Web APIs | API Overview |
| Use SQLite, MySQL, or PostgreSQL | Database API |
| Lock down filesystem access | Filesystem Sandbox |