Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hugojosefson/getsandbox-express
A getsandbox.com to express adapter, and sandbox cli.
https://github.com/hugojosefson/getsandbox-express
Last synced: 29 days ago
JSON representation
A getsandbox.com to express adapter, and sandbox cli.
- Host: GitHub
- URL: https://github.com/hugojosefson/getsandbox-express
- Owner: hugojosefson
- License: mit
- Created: 2018-09-17T15:16:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-11T19:00:44.000Z (over 5 years ago)
- Last Synced: 2024-11-16T02:42:21.259Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @hugojosefson/getsandbox-express
A getsandbox.com to express adapter## Usage
### as command-line tool, without installing
```bash
npx @hugojosefson/getsandbox-express []
```Alternatively, if you want to install it globally:
```bash
npm install -g @hugojosefson/getsandbox-express
sandbox []
```Default port is `8080`.
### as Node.js module
```js
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}.`)
})
```