A getsandbox.com to express adapter
npx @jeanpereirarj/getsandbox-express <main.js> [<port>]
Alternatively, if you want to install it globally:
npm install -g @jeanpereirarj/getsandbox-express
sandbox <main.js> [<port>]
Default port is 8080
.
const sandbox = require('@jeanpereirarj/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}.`)
})