@hugojosefson/getsandbox-express
A getsandbox.com to express adapter
Usage
as command-line tool, without installing
npx @hugojosefson/getsandbox-express <main.js> [<port>]
Alternatively, if you want to install it globally:
npm install -g @hugojosefson/getsandbox-express
sandbox <main.js> [<port>]
Default port is 8080
.
as Node.js module
const sandbox = require('@hugojosefson/getsandbox-express')
const express = require('express')
const app = express()
sandbox.loadSandbox(app, __dirname + '/mysandbox/main.js')
const port = 8080
app.listen(port, () => {
console.log(`Sandbox listening on port ${port}.`)
})