Running your code
How execution works
Your code runs inside a dedicated Docker container on our servers. You never need to install anything locally — every dependency runs on Linux in the cloud.
Starting your app
Using the Run button
Click the ▶ Run button in the toolbar. Spinini detects your project type and runs the appropriate start command:
| Language / framework | Auto-detected command |
|---|---|
| Node.js | `node index.js` |
| npm project | `npm start` |
| Python | `python main.py` |
| Flask | `flask run` |
| HTML | Serve static files |
Using the terminal
Open the terminal (Ctrl + `) and run any command you like:
node server.js
npm run dev
python app.py
flask run --port 5000
Viewing output
Standard output and stderr from your process appear in the terminal pane in real time. Errors are highlighted in red.
If your app starts an HTTP server, the preview pane on the right will automatically connect to it and show your running application.
Stopping a running process
Press Ctrl+C in the terminal to send SIGINT to the running process — same as on your local machine.
Installing packages
Your container has npm, pip, apt, and cargo available. Install anything you need:
npm install express
pip install flask requests
apt-get install -y imagemagick
Installed packages persist for the life of the container. If you restart the container they'll need to be reinstalled — add them to package.json or requirements.txt so they install automatically.
Tip: Use Spinini AI to scaffold your entire app in one shot — it writes files, installs packages, and starts your server automatically.